aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-26 09:35:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-26 09:35:35 +0000
commitf8ede7a108bd19b4ecd301b946e6b634d7e98d5b (patch)
tree6956a5e5fe0bd940ab5bc42060544f694485342d /mdoc.c
parent37f8917aeef19cb63f549c0618b20c10b72b103b (diff)
downloadmandoc-f8ede7a108bd19b4ecd301b946e6b634d7e98d5b.tar.gz
mandoc-f8ede7a108bd19b4ecd301b946e6b634d7e98d5b.tar.zst
mandoc-f8ede7a108bd19b4ecd301b946e6b634d7e98d5b.zip
Fixed `Lb' to be in_line (reported by Ulrich Spoerlein).
Added `Lb' documentation to mdoc.7. Removed harmless but superfluous pre_lb check (was just NULL entries). Added regressions for `Lb' (NOTE that these will only run on new groff, as old groff doesn't support `Lb' at all).
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index e67462e0..46a5ecbe 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.138 2010/05/25 12:37:20 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.139 2010/05/26 09:35:35 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -560,6 +560,8 @@ mdoc_ptext(struct mdoc *m, int line, char *buf, int offs)
* Search for the beginning of unescaped trailing whitespace (ws)
* and for the first character not to be output (end).
*/
+
+ /* FIXME: replace with strcspn(). */
ws = NULL;
for (c = end = buf + offs; *c; c++) {
switch (*c) {