source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Support the ".if v" conditional operator (vroff mode, always
@ 2014-11-19  1:20 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-11-19  1:20 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-11-19  1:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19  1:20 mdocml: Support the ".if v" conditional operator (vroff mode, always schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).