summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/chars.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-06-20 22:29:39 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-06-20 22:29:39 +0000
commit07a861bf4089b3b357a0dfd968099a685d0f25e7 (patch)
tree6cbdb132228b227730110fef52df58ea399ddbc2 /usr.bin/mandoc/chars.c
parent8f00e4f16cf85c50b2b5d75ef62d64a699603bbe (diff)
Improve handling of the roff(7) "\t" escape sequence:
* Parsing macro arguments has to be done in copy mode, which implies replacing "\t" by a literal tab character. * Otherwise, render "\t" as the empty string, not as a 't' character. This fixes formatting of the distfile example in the oldrdist(1) manual. This also shows up in the unzip(1) manual as one of several issues preventing the removal of USE_GROFF from the archivers/unzip port. Thanks to espie@ for attracting my attention to the unzip(1) manual.
Diffstat (limited to 'usr.bin/mandoc/chars.c')
-rw-r--r--usr.bin/mandoc/chars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/chars.c b/usr.bin/mandoc/chars.c
index 57c0eea83ee..d8a7a1d3b23 100644
--- a/usr.bin/mandoc/chars.c
+++ b/usr.bin/mandoc/chars.c
@@ -1,4 +1,4 @@
-/* $Id: chars.c,v 1.24 2013/05/18 16:38:54 schwarze Exp $ */
+/* $Id: chars.c,v 1.25 2013/06/20 22:29:38 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -33,7 +33,7 @@ struct ln {
int unicode;
};
-#define LINES_MAX 328
+#define LINES_MAX 329
#define CHAR(in, ch, code) \
{ NULL, (in), (ch), (code) },