summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-31 07:46:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-31 07:46:07 +0000
commit2ec872dc0da85b23fb0d72c9d83ec1aa8f06ea19 (patch)
tree2a44175f93c0a79365ec8978d7131fe0e36c2f03 /mdoc.c
parentc307b01e3d5709e7d34106b6fe8e98b468bf33f8 (diff)
downloadmandoc-2ec872dc0da85b23fb0d72c9d83ec1aa8f06ea19.tar.gz
Cleanup, no functional change:
Use the new parser flag ROFF_NOFILL in the mdoc(7) parser, too, instead of the old MDOC_LITERAL, which was an alias for the former MAN_LITERAL.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc.c b/mdoc.c
index df0ff036..0ed30b8f 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -210,7 +210,7 @@ mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs)
* Strip trailing tabs in literal context only;
* outside, they affect the next line.
*/
- if (MDOC_LITERAL & mdoc->flags)
+ if (mdoc->flags & ROFF_NOFILL)
continue;
break;
case '\\':
@@ -235,7 +235,7 @@ mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs)
* but add a single vertical space elsewhere.
*/
- if (buf[offs] == '\0' && ! (mdoc->flags & MDOC_LITERAL)) {
+ if (buf[offs] == '\0' && (mdoc->flags & ROFF_NOFILL) == 0) {
switch (mdoc->last->type) {
case ROFFT_TEXT:
sp = mdoc->last->string;
@@ -260,7 +260,7 @@ mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs)
roff_word_alloc(mdoc, line, offs, buf+offs);
- if (mdoc->flags & MDOC_LITERAL)
+ if (mdoc->flags & ROFF_NOFILL)
return 1;
/*