aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-10-17 00:21:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-10-17 00:21:07 +0000
commitd15faae535d3d733f4ecad6a0e740a310a2ddfb9 (patch)
tree98f7dbd06d5d0932412b65aaa76c4114c7bf9742 /libmdoc.h
parent38835fc941bf12f49824b7238cd2312b188777cf (diff)
downloadmandoc-d15faae535d3d733f4ecad6a0e740a310a2ddfb9.tar.gz
mandoc-d15faae535d3d733f4ecad6a0e740a310a2ddfb9.tar.zst
mandoc-d15faae535d3d733f4ecad6a0e740a310a2ddfb9.zip
Very tricky diff to fix macro interpretation and spacing around tabs
in .Bl -column; it took me more than a day to get this right. Triggered by a loosely related bug report from tim@. The lesson for you is: Use .Ta macros in .Bl -column, avoid tabs, or you are in for surprises: The last word before a tab is not interpreted as a macro (unless there is a blank in between), the first word after a tab isn't either (unless there is a blank in between), and a blank after a tab causes a leading blank in the respective output cell. Yes, "blank", "tab", "blank tab" and "tab blank" all have different semantics; if you write code relying on that, good luck maintaining it afterwards...
Diffstat (limited to 'libmdoc.h')
-rw-r--r--libmdoc.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 1ffaf5e2..e06ae6e6 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.105 2015/04/23 15:35:59 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.106 2015/10/17 00:21:07 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -40,9 +40,7 @@ enum margserr {
ARGS_WORD, /* normal word */
ARGS_PUNCT, /* series of punctuation */
ARGS_QWORD, /* quoted word */
- ARGS_PHRASE, /* Ta'd phrase (-column) */
- ARGS_PPHRASE, /* tabbed phrase (-column) */
- ARGS_PEND /* last phrase (-column) */
+ ARGS_PHRASE /* Bl -column phrase */
};
/*