diff options
author | 2014-11-19 01:20:25 +0000 | |
---|---|---|
committer | 2014-11-19 01:20:25 +0000 | |
commit | 2eb6f6bbb8ff74e47725a337d3eaab3f1ffa44f0 (patch) | |
tree | af776295fc867ad15f73de11b68c415d8c36e10d /roff.c | |
parent | d0136da1bd32e7d85b9f64ac1a0cf2d00441d766 (diff) | |
download | mandoc-2eb6f6bbb8ff74e47725a337d3eaab3f1ffa44f0.tar.gz mandoc-2eb6f6bbb8ff74e47725a337d3eaab3f1ffa44f0.tar.zst mandoc-2eb6f6bbb8ff74e47725a337d3eaab3f1ffa44f0.zip |
Support the ".if v" conditional operator (vroff mode, always false)
for groff compatibility because pod2man(1) uses it that way.
Weirdly, groff documents it as "for compatibility with other
troff versions" but neither Heirloom nor Plan 9 have it.
Issue reported by giovanni@ via sthen@.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.238 2014/11/01 06:03:13 schwarze Exp $ */ +/* $Id: roff.c,v 1.239 2014/11/19 01:20:25 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1272,6 +1272,8 @@ roff_evalcond(struct roff *r, int ln, const char *v, int *pos) case 'r': /* FALLTHROUGH */ case 't': + /* FALLTHROUGH */ + case 'v': (*pos)++; return(!wanttrue); default: |