source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mandoc.bsd.lv
To: source@mandoc.bsd.lv
Subject: docbook2mdoc: render <blockquote> as .Bd -ragged -offset indent
Date: Sun, 7 Apr 2019 12:55:48 -0500 (EST)	[thread overview]
Message-ID: <e3fd727e6e3ee434@fantadrom.bsd.lv> (raw)

Log Message:
-----------
render <blockquote> as .Bd -ragged -offset indent

Modified Files:
--------------
    docbook2mdoc:
        docbook2mdoc.c
        parse.c
        statistics.c

Revision Data
-------------
Index: docbook2mdoc.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/docbook2mdoc.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -Ldocbook2mdoc.c -Ldocbook2mdoc.c -u -p -r1.97 -r1.98
--- docbook2mdoc.c
+++ docbook2mdoc.c
@@ -764,6 +764,9 @@ pnode_print(struct format *p, struct pno
 	case NODE_AUTHORGROUP:
 		macro_line(p, "An -split");
 		break;
+	case NODE_BLOCKQUOTE:
+		macro_line(p, "Bd -ragged -offset indent");
+		break;
 	case NODE_BOOKINFO:
 		macro_line(p, "Sh NAME");
 		break;
@@ -1041,6 +1044,7 @@ pnode_print(struct format *p, struct pno
 	case NODE_WARNING:
 		p->level--;
 		break;
+	case NODE_BLOCKQUOTE:
 	case NODE_LITERALLAYOUT:
 	case NODE_PROGRAMLISTING:
 	case NODE_SCREEN:
Index: parse.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/parse.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -Lparse.c -Lparse.c -u -p -r1.19 -r1.20
--- parse.c
+++ parse.c
@@ -464,6 +464,7 @@ xml_elem_start(struct parse *ps, const c
 
 	switch (dat->node = elem->node) {
 	case NODE_AUTHORGROUP:
+	case NODE_BLOCKQUOTE:
 	case NODE_BOOKINFO:
 	case NODE_CAUTION:
 	case NODE_EDITOR:
Index: statistics.c
===================================================================
RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lstatistics.c -Lstatistics.c -u -p -r1.15 -r1.16
--- statistics.c
+++ statistics.c
@@ -350,6 +350,7 @@ main(int argc, char *argv[])
 	if (show_all == 0) {
 		table_add("ROOT", "refentry");
 		table_add("acronym", "TEXT");
+		table_add("blockquote", NULL);
 		table_add("chapter", NULL);
 		table_add("code", "TEXT");
 		table_add("constant", "TEXT");
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

                 reply	other threads:[~2019-04-07 17:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3fd727e6e3ee434@fantadrom.bsd.lv \
    --to=schwarze@mandoc.bsd.lv \
    --cc=source@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).