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

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

Revision 1.3, Sat Jan 5 20:04:50 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.2: +13 -5 lines

Slowly start doing more HTML output tests, in this case for the
interaction of .nf and .RS, related to man_macro.c rev. 1.106.

HTML regression testing is tricky because it is extremely prone to
over-testing, i.e. unintentional testing for volatile formatting
details which are irrelevant for deciding whether the HTML output
is good or bad.  Minor changes to the formatter - which is still
heavily under development - might result in the necessity to
repeatedly adjust many test cases.

Then again, HTML syntax rules are so complicated that without
regression testing, the risk is simply too high that later changes
will re-introduce issues that were already fixed earlier.  Let's
just try to design the tests very carefully in such a way that
the *.out_html files contain nothing that is likely to change, and
defer testing in cases where the HTML output is not yet clean enough
to allow designing tests in such a way.

.\" $OpenBSD: literal.in,v 1.3 2019/01/05 20:00:33 schwarze Exp $
.TH RS-LITERAL 1 "January 5, 2019"
.SH NAME
RS-literal \- indented literal text
.SH DESCRIPTION
BEGINTEST
.br
initial
regular
text
.nf
literal text
before display
.RS
This is a short line.
This is a very long line that would wrap if it weren't in literal context.
.RE
literal text
after display
.fi
final
regular
text
.br
ENDTEST
.br
end of file