source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: generate two tag entries from list entries of the form .It Macro
@ 2016-11-08 16:05 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2016-11-08 16:05 UTC (permalink / raw)
  To: source

Log Message:
-----------
generate two tag entries from list entries of the form
.It Macro tag1 ... | Macro tag2 ...
written on the TGV Toulouse-Paris

Modified Files:
--------------
    mdocml:
        mdoc_term.c

Revision Data
-------------
Index: mdoc_term.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_term.c,v
retrieving revision 1.332
retrieving revision 1.333
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.332 -r1.333
--- mdoc_term.c
+++ mdoc_term.c
@@ -2235,7 +2235,9 @@ termp_tag_pre(DECL_ARGS)
 
 	if (n->child != NULL &&
 	    n->child->type == ROFFT_TEXT &&
-	    n->prev == NULL &&
+	    (n->prev == NULL ||
+	     (n->prev->type == ROFFT_TEXT &&
+	      strcmp(n->prev->string, "|") == 0)) &&
 	    (n->parent->tok == MDOC_It ||
 	     (n->parent->tok == MDOC_Xo &&
 	      n->parent->parent->prev == NULL &&
--
 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:[~2016-11-08 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-08 16:05 mdocml: generate two tag entries from list entries of the form .It Macro 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).