source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: tagging support for .TP and .TQ; try e.g.
@ 2019-07-23 17:54 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-07-23 17:54 UTC (permalink / raw)
  To: source

Log Message:
-----------
tagging support for .TP and .TQ; try e.g. man -O tag=commit cvs

Modified Files:
--------------
    mandoc:
        man_term.c

Revision Data
-------------
Index: man_term.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/man_term.c,v
retrieving revision 1.231
retrieving revision 1.232
diff -Lman_term.c -Lman_term.c -u -p -r1.231 -r1.232
--- man_term.c
+++ man_term.c
@@ -621,6 +621,18 @@ pre_TP(DECL_ARGS)
 		while (nn != NULL && (nn->flags & NODE_LINE) == 0)
 			nn = nn->next;
 
+		if (nn == NULL)
+			return 0;
+
+		if (nn->type == ROFFT_TEXT)
+			tag_man(p, nn);
+		else if (nn->child != NULL &&
+		    nn->child->type == ROFFT_TEXT &&
+		    (nn->tok == MAN_B || nn->tok == MAN_BI ||
+		     nn->tok == MAN_BR || nn->tok == MAN_I ||
+		     nn->tok == MAN_IB || nn->tok == MAN_IR))
+			tag_man(p, nn->child);
+
 		while (nn != NULL) {
 			print_man_node(p, mt, nn, meta);
 			nn = nn->next;
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

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

only message in thread, other threads:[~2019-07-23 17:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 17:54 mandoc: tagging support for .TP and .TQ; try e.g 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).