File: lists

package info (click to toggle)
scdoc 1.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 212 kB
  • sloc: ansic: 1,043; sh: 340; makefile: 58
file content (20 lines) | stat: -rwxr-xr-x 294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
. test/lib.sh

begin "Handles lists"
scdoc <<EOF | grep -A1 '.IP \\(bu 4' | grep '^Item' >/dev/null
test(8)

- Item 1
- Item 2
EOF
end 0

begin "Handles line break in list"
scdoc <<EOF | grep -A1 '^\.br$' | grep '^Where' >/dev/null
test(8)

- Item 1++
  Where am I rendered?
EOF
end 0