diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-01-04 01:15:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-01-04 01:15:40 +0000 |
commit | 09035d9f388e684722419f284284bd0dc6125481 (patch) | |
tree | 363bba5541151252d69ed4088893ae053c33d62f /regress/usr.bin/mandoc/man/nf/indent.in | |
parent | 16cb3f3755ad38847f98c31f447e46392ac712fa (diff) |
Multiple man(7) .IP and .TP fixes started during p2k10:
Affecting both -Tascii and -Thtml:
* The .IP HEAD uses the second argument as the width, not the last one.
* Only print the first .IP HEAD argument, not all but the last.
Affecting only -Tascii:
* The .IP and .TP HEADs must be printed without literal mode,
but literal mode must be restored afterwards.
* After the .IP and .TP bodies, we only want term_newln(), not
term_flushln(), or we would get two blank lines in literal mode.
* The .TP HEAD does not use TWOSPACE, just like .IP doesn't either.
* In literal mode, clear NOLPAD after each line, or subsequent lines
would get no indentation whatsoever.
Affecting only -Thtml:
* Only print next-line .TP children, instead of all but the first.
OK kristaps@ on the -Tascii part; and:
"Can you work this into man_html.c, too?"
Diffstat (limited to 'regress/usr.bin/mandoc/man/nf/indent.in')
-rw-r--r-- | regress/usr.bin/mandoc/man/nf/indent.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/regress/usr.bin/mandoc/man/nf/indent.in b/regress/usr.bin/mandoc/man/nf/indent.in new file mode 100644 index 00000000000..885b391dece --- /dev/null +++ b/regress/usr.bin/mandoc/man/nf/indent.in @@ -0,0 +1,17 @@ +.TH NF-INDENT 1 +.SH NAME +nf-indent \- indentation of literal blocks +.SH DESCRIPTION +Here comes +an indented block: +.nf +oneword +two words +and three words +This is a very long line; because it is indented, it is a bit too long to fit. +blank line: + +end of literal +.fi +He is some more +regular text. |