summaryrefslogtreecommitdiffstats
path: root/regress/roff/esc/w.out_ascii
Commit message (Collapse)AuthorAgeFilesLines
* Support some escape sequences, in particular character escape sequences,Ingo Schwarze2023-10-231-1/+8
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Surprisingly, every escape sequence can also be used as an argumentIngo Schwarze2022-06-081-1/+18
| | | | | | | 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.
* Messages of the -Wbase level now print STYLE:. Since thisIngo Schwarze2017-07-041-1/+1
| | | | | | | | 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.
* Finally port the OpenBSD regression suite.Ingo Schwarze2017-02-081-0/+13
Both kristaps@ and wiz@ repeated asked for this, literally for years.