summaryrefslogtreecommitdiffstats
path: root/read.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-11 21:59:39 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-11 21:59:39 +0000
commit152ce6da67a2ad2dcc3f734d4623883e86681def (patch)
tree36c1c55850a303dab7870e6e8f270c456eec86f9 /read.c
parent2a9b664f3c097e4aafe7c0b3bad0a4ec3245fccf (diff)
downloadmandoc-152ce6da67a2ad2dcc3f734d4623883e86681def.tar.gz
Ignore \# lines alongside \". From groff(7):
\# Everything up to and including the next newline is ignored. This is interpreted in copy mode. This is like \" except that the terminating newline is ignored as well.
Diffstat (limited to 'read.c')
-rw-r--r--read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read.c b/read.c
index a43b60d8..03415d31 100644
--- a/read.c
+++ b/read.c
@@ -354,7 +354,7 @@ mparse_buf_r(struct mparse *curp, struct buf blk, int start)
continue;
}
- if ('"' == blk.buf[i + 1]) {
+ if ('"' == blk.buf[i + 1] || '#' == blk.buf[i + 1]) {
i += 2;
/* Comment, skip to end of line */
for (; i < (int)blk.sz; ++i) {