From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.sgregoratto.me (mail.sgregoratto.me [149.28.166.45]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id a05b5c5f for ; Sat, 6 Apr 2019 04:33:45 -0500 (EST) Received: from mail.sgregoratto.me (localhost [127.0.0.1]) by mail.sgregoratto.me (Postfix) with ESMTP id 3C46F3E941 for ; Sat, 6 Apr 2019 20:33:42 +1100 (AEDT) Authentication-Results: mail.sgregoratto.me (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=sgregoratto.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sgregoratto.me; h=user-agent:content-disposition:content-type:content-type :mime-version:message-id:subject:subject:to:from:from:date:date; s=dkim; t=1554543221; x=1557135222; bh=gnkcg1eeV2DbN4Cz26pSeTOM r/pLaDaClr+blO146nE=; b=ViyobRMxO6Av8xm1yZSkDJ2du0a7HImQ6ZvX5mNU 6N1cRQLfxCMiFAwGjm1X8xqLBUFRn9WUXKzmcOV02J107YV04S725r+wloqHpKMv /dWYmOzViz578pswqzQuzTJlupKDmnmmNnwP4m++EALp6MAyZ1aLzknky4RWKApL bvU= X-Virus-Scanned: Debian amavisd-new at mail.sgregoratto.me Received: from mail.sgregoratto.me ([127.0.0.1]) by mail.sgregoratto.me (mail.sgregoratto.me [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 7FH_1cT0NC2h for ; Sat, 6 Apr 2019 20:33:41 +1100 (AEDT) Received: from localhost (172.44.179.58.sta.dodo.net.au [58.179.44.172]) by mail.sgregoratto.me (Postfix) with ESMTPSA id 0AF003E82E for ; Sat, 6 Apr 2019 20:33:40 +1100 (AEDT) Date: Sat, 6 Apr 2019 20:33:40 +1100 From: Stephen Gregoratto To: tech@mandoc.bsd.lv Subject: [PATCH docbook2mdoc] Add NODE_SIMPARA Message-ID: <20190406093327.66armzmidymuzi7j@BlackBox> Mail-Followup-To: tech@mandoc.bsd.lv X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20180716 >From the spec: > A simpara is a "simple paragraph," one that may contain only > character data and inline elements. Just the text, ma'am. Since we don't care about validation, treat it the same as . Index: docbook2mdoc.c =================================================================== RCS file: /cvs/docbook2mdoc/docbook2mdoc.c,v retrieving revision 1.91 diff -u -p -r1.91 docbook2mdoc.c --- docbook2mdoc.c 3 Apr 2019 18:52:40 -0000 1.91 +++ docbook2mdoc.c 6 Apr 2019 09:24:49 -0000 @@ -764,6 +764,7 @@ pnode_print(struct format *p, struct pno pnode_printlist(p, pn); break; case NODE_PARA: + case NODE_SIMPARA: pnode_printpara(p, pn); break; case NODE_PARAMDEF: Index: node.h =================================================================== RCS file: /cvs/docbook2mdoc/node.h,v retrieving revision 1.9 diff -u -p -r1.9 node.h --- node.h 3 Apr 2019 17:53:02 -0000 1.9 +++ node.h 6 Apr 2019 09:24:49 -0000 @@ -121,6 +121,7 @@ enum nodeid { NODE_SCREEN, NODE_SECTION, NODE_SGMLTAG, + NODE_SIMPARA, NODE_SIMPLELIST, NODE_SPANSPEC, NODE_SUBTITLE, Index: parse.c =================================================================== RCS file: /cvs/docbook2mdoc/parse.c,v retrieving revision 1.14 diff -u -p -r1.14 parse.c --- parse.c 5 Apr 2019 14:37:36 -0000 1.14 +++ parse.c 6 Apr 2019 09:24:49 -0000 @@ -170,6 +170,7 @@ static const struct element elements[] = { "sect2", NODE_SECTION }, { "section", NODE_SECTION }, { "sgmltag", NODE_SGMLTAG }, + { "simpara", NODE_SIMPARA }, { "simplelist", NODE_SIMPLELIST }, { "spanspec", NODE_SPANSPEC }, { "structfield", NODE_PARAMETER }, -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv