[BACK]Return to literal.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / man / HP

File: [cvsweb.bsd.lv] / mandoc / regress / man / HP / literal.in (download)

Revision 1.3, Sun Jan 6 04:55:10 2019 UTC (5 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD
Changes since 1.2: +13 -8 lines

Finally, represent the man(7) .PP and .HP macros by the natural
choice, which is the <p> HTML element.  On top of the previous
fill-mode improvements, the key to making this possible is to
automatically close the <p> when required: before headers, subsequent
paragraphs, lists, indented blocks, synopsis blocks, tbl(7) blocks,
and before blocks using no-fill mode.

In man(7) documents, represent the .sp request by a blank line in
no-fill mode and in the same way as .PP in fill mode.

.\" $OpenBSD: literal.in,v 1.3 2019/01/06 04:41:15 schwarze Exp $
.TH HP-LITERAL 1 "January 6, 2019"
.SH NAME
HP-literal \- hanged paragraphs in literal context
.SH DESCRIPTION
BEGINTEST
before hanged paragraph
.HP 10n
tag
indented
text
.PP
regular
paragraph
.nf
literal
text
.HP 10n
tag
literal
hanged
paragraph
.PP
literal
paragraph
.fi
regular
text
.br
ENDTEST
.br
end of file