summaryrefslogtreecommitdiffstatshomepage
path: root/man.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-16 19:13:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-16 19:13:28 +0000
commit632038c8c98f1c408bb368edf910b849f186dc8a (patch)
tree000479224756a6b4a7749394e9208b7308c220ab /man.c
parentb06a75d0798f3ff62d04b3ade52cf34a4ff94613 (diff)
downloadmandoc-632038c8c98f1c408bb368edf910b849f186dc8a.tar.gz
mandoc-632038c8c98f1c408bb368edf910b849f186dc8a.tar.zst
mandoc-632038c8c98f1c408bb368edf910b849f186dc8a.zip
Modernised comment handling: text following \" is thrown away before
either parser is invoked. Single-dot lines correctly handled. This confirms with both new- and old-groff. "Comment" subsection added to mdoc.7 and man.7.
Diffstat (limited to 'man.c')
-rw-r--r--man.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/man.c b/man.c
index 56b0721c..5b83d958 100644
--- a/man.c
+++ b/man.c
@@ -1,4 +1,4 @@
-/* $Id: man.c,v 1.19 2009/06/10 20:18:43 kristaps Exp $ */
+/* $Id: man.c,v 1.20 2009/06/16 19:13:28 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -324,10 +324,6 @@ man_pmacro(struct man *m, int ln, char *buf)
ppos = i;
- if (buf[i] && '\\' == buf[i])
- if (buf[i + 1] && '\"' == buf[i + 1])
- goto out;
-
/* Copy the first word into a nil-terminated buffer. */
for (j = 0; j < 4; j++, i++) {