diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-21 20:35:03 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-21 20:35:03 +0000 |
commit | 1b939f3fc9a59c4dd5ac04a9c995a8457d4ee32a (patch) | |
tree | a3a2b528ee1e0f2ca5ccac1c1261a4a0683a01f3 /out.h | |
parent | 52a2d24a5977427830c9757b19fb36e1d1ac5307 (diff) | |
download | mandoc-1b939f3fc9a59c4dd5ac04a9c995a8457d4ee32a.tar.gz mandoc-1b939f3fc9a59c4dd5ac04a9c995a8457d4ee32a.tar.zst mandoc-1b939f3fc9a59c4dd5ac04a9c995a8457d4ee32a.zip |
Accomodate for groff's crappy behaviour wherein an unrecognised
single-character escape (and ONLY this type of escape) will map back
into itself:
"If a backslash is followed by a character that does not
constitute a defined escape sequence the backslash is silently
ignored and the character maps to itself."
(From groff.7.)
Found by Jason McIntyre.
Diffstat (limited to 'out.h')
-rw-r--r-- | out.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: out.h,v 1.13 2010/07/18 22:55:06 kristaps Exp $ */ +/* $Id: out.h,v 1.14 2010/07/21 20:35:03 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -37,8 +37,9 @@ enum roffscale { enum roffdeco { DECO_NONE, - DECO_SPECIAL, - DECO_RESERVED, + DECO_SPECIAL, /* special character */ + DECO_SSPECIAL, /* single-char special */ + DECO_RESERVED, /* reserved word */ DECO_BOLD, DECO_ITALIC, DECO_ROMAN, |