aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/chars.in
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-06-20 22:39:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-06-20 22:39:30 +0000
commit114032c297cb0cb196cf5356723060c257a60f4d (patch)
treeef6ff1e80068da91a2f84a6c1e432d3280f5d31a /chars.in
parentb663981f57d1f458daecf7adb34612c2aa90985c (diff)
downloadmandoc-114032c297cb0cb196cf5356723060c257a60f4d.tar.gz
mandoc-114032c297cb0cb196cf5356723060c257a60f4d.tar.zst
mandoc-114032c297cb0cb196cf5356723060c257a60f4d.zip
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 'chars.in')
-rw-r--r--chars.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/chars.in b/chars.in
index a4c45b3c..cc6549e7 100644
--- a/chars.in
+++ b/chars.in
@@ -1,4 +1,4 @@
-/* $Id: chars.in,v 1.42 2011/10/02 10:02:26 kristaps Exp $ */
+/* $Id: chars.in,v 1.43 2013/06/20 22:39:30 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -42,6 +42,7 @@ CHAR("&", "", 0)
CHAR("^", "", 0)
CHAR("|", "", 0)
CHAR("}", "", 0)
+CHAR("t", "", 0)
/* Accents. */
CHAR("a\"", "\"", 779)