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

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

Revision 1.4, Sun Jan 6 04:55:11 2019 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD
Changes since 1.3: +8 -4 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.7 2019/01/06 04:41:15 schwarze Exp $
.TH IP-LITERAL 1 "January 6, 2019"
.SH NAME
IP-literal \- indented paragraphs in literal context
.SH DESCRIPTION
BEGINTEST
before indentation
.IP tag 10n
indented
regular
text
.PP
new
regular
paragraph
.nf
literal
text
.IP tag 10n
indented
literal
text
.PP
new
literal
paragraph
.fi
regular
text
.SS literal into indented paragraph
regular
text
.nf
literal
text
.IP tag 10n
indented
literal
text
.fi
indented
regular
text
.PP
new
regular
paragraph
.SS literal out of indented paragraph
regular
text
.IP tag 10n
indented
regular
text
.nf
indented
literal
text
.PP
new
literal
paragraph
.fi
regular
text
.br
ENDTEST
.br
end of file