History log of /openbsd-current/regress/usr.bin/mandoc/roff/cond/close.out_lint
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.8 03-Aug-2020 schwarze

Put the code handling \} into a new function roff_cond_checkend()
and call that function not only from both places where copies
existed - when processing text lines and when processing request/macro
lines in conditional block scope - but also when closing a macro
definition request, such that this construction works:

.if n \{.de macroname
macro content
.. \} ignored arguments
.macroname

This fixes a bug reported by John Gardner <gardnerjohng at gmail dot com>.

While here, avoid a confusing decrement of the line scope counter
in roffnode_cleanscope() for conditional blocks that do not have
line scope in the first place (no functional change for this part).
Also improve validation of an internal invariant in roff_cblock()
and polish some comments.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.7 26-Nov-2018 schwarze

When a conditional block is closed by putting "\}" on a text line
by itself (which is somewhat unusual but not invalid; most authors
use the empty macro line ".\}" instead), agree more closely with
groff and do not produce a double space in the output.

Quirk reported by millert@.

While here, tweak the rest of the function body of roff_cond_text()
to more closely match roff_cond_sub(). The subtly different handling
could make people (including myself) wonder whether there is any
point in being different. Testing shows there is not.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.6 04-Jul-2017 schwarze

Messages of the -Wbase level now print STYLE:. Since this
causes horrible churn anyway, profit of the opportunity to stop
excessive testing, such that this is hopefully the last instance
of such churn. Consistently use OpenBSD RCS tags, blank .Os,
blank fourth .TH argument, and Mdocdate like everywhere else.
Use -Ios=OpenBSD for platform-independent predictable output.


# 1.5 25-Jun-2017 schwarze

cope with changes in BASE messages


# 1.4 17-Jun-2017 schwarze

churn related to the new style message about RCS ids


# 1.3 05-May-2017 schwarze

Move .sp to the roff modules. Enough infrastructure is in place
now that this actually saves code: -70 LOC.


# 1.2 04-May-2017 schwarze

Parser reorg:
Generate the first node on the roff level: .br
Fix some column numbers in diagnostic messages while here.


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.1 07-Jul-2014 schwarze

Clean up ERROR messages related to document structure and macros:
Hierarchical naming and mention macro names in messages.


# 1.7 26-Nov-2018 schwarze

When a conditional block is closed by putting "\}" on a text line
by itself (which is somewhat unusual but not invalid; most authors
use the empty macro line ".\}" instead), agree more closely with
groff and do not produce a double space in the output.

Quirk reported by millert@.

While here, tweak the rest of the function body of roff_cond_text()
to more closely match roff_cond_sub(). The subtly different handling
could make people (including myself) wonder whether there is any
point in being different. Testing shows there is not.


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.6 04-Jul-2017 schwarze

Messages of the -Wbase level now print STYLE:. Since this
causes horrible churn anyway, profit of the opportunity to stop
excessive testing, such that this is hopefully the last instance
of such churn. Consistently use OpenBSD RCS tags, blank .Os,
blank fourth .TH argument, and Mdocdate like everywhere else.
Use -Ios=OpenBSD for platform-independent predictable output.


# 1.5 25-Jun-2017 schwarze

cope with changes in BASE messages


# 1.4 17-Jun-2017 schwarze

churn related to the new style message about RCS ids


# 1.3 05-May-2017 schwarze

Move .sp to the roff modules. Enough infrastructure is in place
now that this actually saves code: -70 LOC.


# 1.2 04-May-2017 schwarze

Parser reorg:
Generate the first node on the roff level: .br
Fix some column numbers in diagnostic messages while here.


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.1 07-Jul-2014 schwarze

Clean up ERROR messages related to document structure and macros:
Hierarchical naming and mention macro names in messages.