summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-09-06 23:24:27 +0000
committerschwarze <schwarze@openbsd.org>2014-09-06 23:24:27 +0000
commit9d7b4fe85a20db93c1f251f9a9dbada95446cf75 (patch)
treea96b4a6432b87595cfe9b529274f5a8b415855b3 /usr.bin/mandoc/mdoc.c
parentMove main format autodetection from the parser dispatcher to the (diff)
downloadwireguard-openbsd-9d7b4fe85a20db93c1f251f9a9dbada95446cf75.tar.xz
wireguard-openbsd-9d7b4fe85a20db93c1f251f9a9dbada95446cf75.zip
Simplify by handling empty request lines at the one logical place
in the roff parser instead of in three other places in other parsers. No functional change.
Diffstat (limited to 'usr.bin/mandoc/mdoc.c')
-rw-r--r--usr.bin/mandoc/mdoc.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.bin/mandoc/mdoc.c b/usr.bin/mandoc/mdoc.c
index af1805db250..00066b18345 100644
--- a/usr.bin/mandoc/mdoc.c
+++ b/usr.bin/mandoc/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.113 2014/08/08 16:17:09 schwarze Exp $ */
+/* $Id: mdoc.c,v 1.114 2014/09/06 23:24:27 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -791,15 +791,6 @@ mdoc_pmacro(struct mdoc *mdoc, int ln, char *buf, int offs)
char mac[5];
struct mdoc_node *n;
- /* Empty post-control lines are ignored. */
-
- if ('"' == buf[offs]) {
- mandoc_msg(MANDOCERR_COMMENT_BAD, mdoc->parse,
- ln, offs, NULL);
- return(1);
- } else if ('\0' == buf[offs])
- return(1);
-
sv = offs;
/*