diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-11 21:59:39 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-11 21:59:39 +0000 |
commit | 152ce6da67a2ad2dcc3f734d4623883e86681def (patch) | |
tree | 36c1c55850a303dab7870e6e8f270c456eec86f9 /read.c | |
parent | 2a9b664f3c097e4aafe7c0b3bad0a4ec3245fccf (diff) | |
download | mandoc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |