Up to [cvsweb.bsd.lv] / mandoc / regress / roff / esc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 23 20:25:03 2023 UTC (7 months, 1 week ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +5 -4 lines
Diff to previous 1.7 (colored)
Support some escape sequences, in particular character escape sequences, inside \w arguments, and skip most other escape sequences when measuring the output length in this way because most escape sequences contribute little or nothing to text width: for example, consider font escapes in terminal output. This implementation is very rudimentary. In particular, it assumes that every character has the same width. No attempt is made to detect double-width or zero-width Unicode characters or to take dependencies on output devices or fonts into account. These limitations are hard to avoid because mandoc has to interpolate \w at the parsing stage when the output device is not yet known. I really do not want the content of the syntax tree to depend on the output device. Feature requested by Paul <Eggert at cs dot ucla dot edu>, who also submitted a patch, but i chose to commit this very different patch with almost the same functionality. His input was still very valuable because complete support for \w is out of the question, and consequently, the main task is identifying subsets of the feature that are needed for real-world manual pages and can be supported without uprooting the whole forest.
Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 8 13:24:02 2022 UTC (23 months, 3 weeks ago) by schwarze
Branch: MAIN
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)
Surprisingly, every escape sequence can also be used as an argument delimiter for an outer escape sequence, in which case the delimiting escape sequence retains its syntax but usually ignores its argument and loses its inherent effect. Add rudimentary support for this syntax quirk in order to improve parsing compatibility with groff.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jun 5 13:54:15 2022 UTC (23 months, 4 weeks ago) by schwarze
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)
With the improved escape sequence parser, it becomes easy to also improve diagnostics. Distinguish "incomplete escape sequence", "invalid special character", and "unknown special character" from the generic "invalid escape sequence", also promoting them from WARNING to ERROR because incomplete escape sequences are severe syntax violations and because encountering an invalid or unknown special character makes it likely that part of the document content intended by the authors gets lost.
Revision 1.5 / (download) - annotate - [select for diffs], Tue Jul 4 15:26:34 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6,
VERSION_1_14_5,
VERSION_1_14_4,
VERSION_1_14_3,
VERSION_1_14_2
Changes since 1.4: +1 -4 lines
Diff to previous 1.4 (colored)
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.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 25 12:53:33 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)
cope with changes in BASE messages
Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 17 22:45:46 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored)
style message about missing RCS ids; inspired by mdoclint
Revision 1.2 / (download) - annotate - [select for diffs], Sun Jun 11 19:45:30 2017 UTC (6 years, 11 months ago) by schwarze
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)
Style message about legacy man(7) date format in mdoc(7) documents and operating system dependent messages about missing or unexpected Mdocdate; inspired by mdoclint(1).
Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 8 03:03:21 2017 UTC (7 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_1,
VERSION_1_13
Finally port the OpenBSD regression suite. Both kristaps@ and wiz@ repeated asked for this, literally for years.