From 1b939f3fc9a59c4dd5ac04a9c995a8457d4ee32a Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 21 Jul 2010 20:35:03 +0000 Subject: 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. --- out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'out.c') diff --git a/out.c b/out.c index 1077aaed..62fda5cf 100644 --- a/out.c +++ b/out.c @@ -1,4 +1,4 @@ -/* $Id: out.c,v 1.20 2010/07/19 07:53:40 kristaps Exp $ */ +/* $Id: out.c,v 1.21 2010/07/21 20:35:03 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -278,7 +278,7 @@ a2roffdeco(enum roffdeco *d, const char **word, size_t *sz) *d = DECO_NOSPACE; return(i); default: - *d = DECO_SPECIAL; + *d = DECO_SSPECIAL; i--; lim = 1; break; -- cgit v1.2.3