summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2009-07-07 00:42:04 +0000
committerschwarze <schwarze@openbsd.org>2009-07-07 00:42:04 +0000
commit40add39f996428ca0d01383c13530a84e9ccc268 (patch)
treecb3975c8b34817841ffffdd418950af487fd23c3
parentsync to 1.7.21: kristaps@ seems to prefer British spelling... (diff)
downloadwireguard-openbsd-40add39f996428ca0d01383c13530a84e9ccc268.tar.xz
wireguard-openbsd-40add39f996428ca0d01383c13530a84e9ccc268.zip
The word "indent" has a special meaning in ".Bd -tag -offset indent",
but *not* in ".Bd -tag -width indent", so in the latter case, it should not be handled specially. ok kristaps@ and jmc@ and contained in 1.7.22
-rw-r--r--usr.bin/mandoc/mdoc_term.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c
index 61885a8a895..07fbe4e158b 100644
--- a/usr.bin/mandoc/mdoc_term.c
+++ b/usr.bin/mandoc/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.21 2009/07/06 23:37:27 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.22 2009/07/07 00:42:04 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -527,10 +527,6 @@ arg_width(const struct mdoc_argv *arg, int pos)
assert(pos < (int)arg->sz && pos >= 0);
assert(arg->value[pos]);
- if (0 == strcmp(arg->value[pos], "indent"))
- return(INDENT);
- if (0 == strcmp(arg->value[pos], "indent-two"))
- return(INDENT * 2);
if (0 == (len = (int)strlen(arg->value[pos])))
return(0);