From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id sAJ1KSu4002613 for ; Tue, 18 Nov 2014 20:20:29 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id sAJ1KP4w023063; Tue, 18 Nov 2014 20:20:25 -0500 (EST) Date: Tue, 18 Nov 2014 20:20:25 -0500 (EST) Message-Id: <201411190120.sAJ1KP4w023063@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Support the ".if v" conditional operator (vroff mode, always X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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@. Modified Files: -------------- mdocml: roff.7 roff.c Revision Data ------------- Index: roff.7 =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.7,v retrieving revision 1.58 retrieving revision 1.59 diff -Lroff.7 -Lroff.7 -u -p -r1.58 -r1.59 --- roff.7 +++ roff.7 @@ -747,9 +747,11 @@ If the first character of COND is .Pq even page , .Sq r .Pq register accessed , -or .Sq t .Pq troff mode , +or +.Sq v +.Pq vroff mode , COND evaluates to false. .It If COND starts with a parenthesis or with an optionally signed Index: roff.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v retrieving revision 1.238 retrieving revision 1.239 diff -Lroff.c -Lroff.c -u -p -r1.238 -r1.239 --- roff.c +++ roff.c @@ -1272,6 +1272,8 @@ roff_evalcond(struct roff *r, int ln, co case 'r': /* FALLTHROUGH */ case 't': + /* FALLTHROUGH */ + case 'v': (*pos)++; return(!wanttrue); default: -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv