* docbook2mdoc: preserve line breaks in no-fill elements even when lines
@ 2019-04-24 15:20 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-04-24 15:20 UTC (permalink / raw)
To: source
Log Message:
-----------
preserve line breaks in no-fill elements
even when lines start with nodes of CLASS_TEXT
that are not NODE_TEXT, for example NODE_ESCAPE
Modified Files:
--------------
docbook2mdoc:
docbook2mdoc.c
Revision Data
-------------
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.136 -r1.137
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -90,7 +90,7 @@ pnode_printtext(struct format *f, struct
break;
case LINE_TEXT:
if (n->spc) {
- if (n->node == NODE_TEXT)
+ if (pnode_class(n->node) == CLASS_TEXT)
macro_close(f);
else
putchar(' ');
--
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-04-24 15:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 15:20 docbook2mdoc: preserve line breaks in no-fill elements even when lines 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).