summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/man/HP/literal.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-10 19:53:13 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-10 19:53:13 +0000
commit80f833cf040f5fefb18badd53d2aa008031c4946 (patch)
tree19322c57b3a2345bae267d2958370f4a53aab659 /regress/usr.bin/mandoc/man/HP/literal.in
parent02452d0882c9712c3bf2f3111250cde6426730bf (diff)
multiple fixes to -Tascii .HP rendering:
* do not add an excessive blank line before the block * in literal mode, start a new line after the tag getting this to work requires some general (print_man_node) fixes: * in literal mode, break the output line at the end of each input line, not just after those input lines ending in text * but don't break it when there was no output on the line * and adjust the margins after the .HP tag these general fixes require an adjustment to -Tascii .TP rendering: * set up NOBREAK mode before the body, not after the head finally, based on all this, implement -Tman .Bl -hang in terms of .HP
Diffstat (limited to 'regress/usr.bin/mandoc/man/HP/literal.in')
-rw-r--r--regress/usr.bin/mandoc/man/HP/literal.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/regress/usr.bin/mandoc/man/HP/literal.in b/regress/usr.bin/mandoc/man/HP/literal.in
new file mode 100644
index 00000000000..e7caee1cc73
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/HP/literal.in
@@ -0,0 +1,26 @@
+.TH HP-LITERAL 1 "January 4, 2011" OpenBSD
+.SH NAME
+HP-literal \- hanged paragraphs in literal context
+.SH DESCRIPTION
+regular
+text
+.HP 10n
+tag
+indented
+text
+.PP
+regular
+text
+.nf
+literal
+text
+.HP 10n
+tag
+indented
+text
+.PP
+literal
+text
+.fi
+regular
+text