summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-30 23:05:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-30 23:05:57 +0000
commit7678e05d53f1d1ad206bd64311355cb4b87c7c25 (patch)
treef22ea6030a2dc99ac0ec7b9cf3541f4a4b6b7272 /roff.c
parent049cc4aa4e4a294608c81ec192c2c6b046944a43 (diff)
downloadmandoc-7678e05d53f1d1ad206bd64311355cb4b87c7c25.tar.gz
Small fixes to output.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/roff.c b/roff.c
index 7d88c8a1..33c16278 100644
--- a/roff.c
+++ b/roff.c
@@ -518,6 +518,10 @@ roffparse(struct rofftree *tree, char *buf)
char *argv[ROFF_MAXARG];
char **argvp;
+ if (0 != *buf && 0 != *(buf + 1) && 0 != *(buf + 2))
+ if (0 == strncmp(buf, ".\\\"", 3))
+ return(1);
+
if (ROFF_MAX == (tok = rofffindtok(buf + 1))) {
roff_err(tree, buf + 1, "bogus line macro");
return(0);
@@ -525,9 +529,9 @@ roffparse(struct rofftree *tree, char *buf)
roff_err(tree, buf + 1, "unsupported macro `%s'",
toknames[tok]);
return(0);
- } else if (ROFF_COMMENT == tokens[tok].type)
- return(1);
-
+ }
+
+ assert(ROFF___ != tok);
if ( ! roffargs(tree, tok, buf, argv))
return(0);