source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* docbook2mdoc: the handlers for NODE_LITERALLAYOUT and
@ 2019-03-23 10:22 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-03-23 10:22 UTC (permalink / raw)
  To: source

Log Message:
-----------
the handlers for NODE_LITERALLAYOUT and NODE_PROGRAMLISTING were exchanged

Modified Files:
--------------
    docbook2mdoc:
        docbook2mdoc.c

Revision Data
-------------
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.65 -r1.66
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -1388,7 +1388,8 @@ pnode_print(struct parse *p, struct pnod
 		break;
 	case NODE_LITERALLAYOUT:
 		assert(p->newln);
-		puts(".Bd -literal");
+		printf(".Bd %s\n", pnode_getattr(pn, ATTRKEY_CLASS) ==
+		    ATTRVAL_MONOSPACED ? "-literal" : "-unfilled");
 		break;
 	case NODE_MML_MFENCED:
 		pnode_printmathfenced(p, pn);
@@ -1435,8 +1436,7 @@ pnode_print(struct parse *p, struct pnod
 	case NODE_PROGRAMLISTING:
 	case NODE_SCREEN:
 		assert(p->newln);
-		printf(".Bd %s\n", pnode_getattr(pn, ATTRKEY_CLASS) ==
-		    ATTRVAL_MONOSPACED ? "-literal" : "-unfilled");
+		puts(".Bd -literal");
 		break;
 	case NODE_REFENTRYINFO:
 		/* Suppress. */
--
 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-03-23 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-23 10:22 docbook2mdoc: the handlers for NODE_LITERALLAYOUT and 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).