summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/eqn_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-10-24 20:29:22 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-10-24 20:29:22 +0000
commite3a7741b37324badd4a8798bc11f5f6f48cbed5d (patch)
tree65a9c2a58fea5d8cce32f9c54bfbed283952daae /usr.bin/mandoc/eqn_term.c
parent6c0965f8d7fb84a02196d91d79ef425eae0b7578 (diff)
Handle \N numbered character escapes the same way as groff:
If \N is followed by a digit, ignore \N and the digit. If \N is followed by a non-digit, the next non-digit ends the character number; the two delimiters need not match. Kristaps calls that "gross, but not our fault". This fixes most of src/regress/usr.bin/mandoc/char/N/basic.in, except that handling of non-printable characters still differs from groff. For now, i'm fixing \N only. Other escapes taking numeric arguments may or may not need similar handling, but \N is by far the most important for practical purposes. ok kristaps@
Diffstat (limited to 'usr.bin/mandoc/eqn_term.c')
0 files changed, 0 insertions, 0 deletions