aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit511e4c18cedc1987a3748e49084ab8a2ad707fe5 (patch)
tree36287622898fd3d7278ab6f8a3c799f5b0fe4d61 /roff.c
parentaf732c7fcc695182a667f1fabbd56d93896ad2f4 (diff)
downloadmandoc-511e4c18cedc1987a3748e49084ab8a2ad707fe5.tar.gz
mandoc-511e4c18cedc1987a3748e49084ab8a2ad707fe5.tar.zst
mandoc-511e4c18cedc1987a3748e49084ab8a2ad707fe5.zip
Small fixes to output.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/roff.c b/roff.c
index 457dd699..fce705f5 100644
--- a/roff.c
+++ b/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.24 2008/11/30 21:41:35 kristaps Exp $ */
+/* $Id: roff.c,v 1.25 2008/11/30 23:05:57 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);