scdoc2mdoc

A fork of scdoc to output mdoc(7)
git clone git://git.sgregoratto.me/scdoc2mdoc
Log | Files | Refs | README | LICENSE

indent (289B)


      1 #!/bin/sh
      2 . test/lib.sh
      3 
      4 begin "Indents indented text"
      5 scdoc <<EOF | grep ".RS 4" >/dev/null
      6 test(8)
      7 
      8 Not indented
      9 	Indented one level
     10 EOF
     11 end 0
     12 
     13 begin "Deindents following indented text"
     14 scdoc <<EOF | grep ".RE" >/dev/null
     15 test(8)
     16 
     17 Not indented
     18 	Indented one level
     19 Not indented
     20 EOF
     21 end 0