Up to [cvsweb.bsd.lv] / mandoc / regress / roff / cond
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.6 / (download) - annotate - [select for diffs], Mon Nov 13 21:07:06 2023 UTC (10 months, 2 weeks ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +13 -13 lines
Diff to previous 1.5 (colored)
reduce the man(7) global indentation from 7n to 5n, see man_term.c rev. 1.244
Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 3 12:15:57 2022 UTC (2 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.4: +7 -1 lines
Diff to previous 1.4 (colored)
During identifier parsing, handle undefined escape sequences in the same way as groff: * \\ is always reduced to \ * \. is always reduced to . * other undefined escape sequences are usually reduced to the escape name, for example \G to G, except during the expansion of expanding escape sequences having the standard argument form (in particular \* and \n), in which case the backslash is preserved literally. Yes, this is confusing indeed. For example, the following have the same meaning: * .ds \. and .ds . which is not the same as .ds \\. * \*[\.] and \*[.] which is not the same as \*[\\.] * .ds \G and .ds G which is not the same as .ds \\G * \*[\G] and \*[\\G] which is not the same as \*[G] <- sic! To feel less dirty, have a leaning toothpick, if you are so inclined. This patch also slightly improves the string shown by the "escaped character not allowed in a name" error message.
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 28 20:12:45 2021 UTC (3 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6
Changes since 1.3: +0 -4 lines
Diff to previous 1.3 (colored)
delete the two pairs of extra blank lines from expected man(7) terminal output that are no longer printed since man_term.c rev. 1.236
Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 6 21:11:44 2019 UTC (5 years, 7 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)
Let roff_getname() end the roff identifier at a tab character and audit all its callers whether termination is handled correctly. Resulting improvements: * An escape or tab ending the macro name in a macro invocation is discarded, and argument processing is started after it. * An escape or tab ending a name in ".if d" and ".if r" is preserved. * An escape ending a name in ".ds" causes the whole request to be ignored. * A tab ending a name in ".ds" becomes part of the string. * An escape or tab ending a name in ".rm" causes the rest of the line to be ignored. * An escape or tab ending the first name in ".als", ".rn", or ".nr" causes the whole request to be ignored. Kurt Jaeger <pi at FreeBSD> made me aware of https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235456#c0 and in that bug report, comment 0 item (3) is a special case of this class of issues. Yes, the "mh" manual pages are no doubt among the worst on the planet.
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 18 17:36:06 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_4,
VERSION_1_14_3,
VERSION_1_14_2
Changes since 1.1: +2 -0 lines
Diff to previous 1.1 (colored)
Implement appending to standard man(7) and mdoc(7) macros with .am. With roff_getstrn(), provide finer control which definitions can be used for what: * All definitions can be used for .if d tests and .am appending. * User-defined for \* expansion, .dei expansion, and macro calling. * Predefined for \* expansion. * Standard macros, original or renamed, for macro calling. Several related improvements while here: * Do not return string table entries that have explicitly been removed. * Do not create a rentab entry when trying to rename a non-existent macro. * Clear an existing rentab entry when the external interface roff_setstr() is called with its name. * Avoid trailing blanks in macro lines generated from renamed and from aliased macros. * Delete the duplicate __m*_reserved[] tables, just use roff_name[].
Revision 1.1 / (download) - annotate - [select for diffs], Wed Jun 14 14:02:40 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
implement the roff(7) d (macro or string defined) conditional