From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from scc-mailout-kit-01.scc.kit.edu (scc-mailout-kit-01.scc.kit.edu [129.13.231.81]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id a8661847 for ; Sat, 6 Apr 2019 08:51:45 -0500 (EST) Received: from asta-nat.asta.uni-karlsruhe.de ([172.22.63.82] helo=hekate.usta.de) by scc-mailout-kit-01.scc.kit.edu with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (envelope-from ) id 1hCljT-0004kw-1c; Sat, 06 Apr 2019 15:51:44 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1hCljS-0000kS-Uw; Sat, 06 Apr 2019 15:51:42 +0200 Received: from athene.usta.de ([172.24.96.10]) by donnerwolke.usta.de with esmtp (Exim 4.84_2) (envelope-from ) id 1hCljS-0005S2-RA; Sat, 06 Apr 2019 15:51:42 +0200 Received: from localhost (athene.usta.de [local]) by athene.usta.de (OpenSMTPD) with ESMTPA id 232124ef; Sat, 6 Apr 2019 15:51:42 +0200 (CEST) Date: Sat, 6 Apr 2019 15:51:42 +0200 From: Ingo Schwarze To: Stephen Gregoratto Cc: tech@mandoc.bsd.lv Subject: Re: [PATCH docbook2mdoc] Add NODE_SIMPARA Message-ID: <20190406135142.GB31475@athene.usta.de> References: <20190406093327.66armzmidymuzi7j@BlackBox> X-Mailinglist: mandoc-tech Reply-To: tech@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190406093327.66armzmidymuzi7j@BlackBox> User-Agent: Mutt/1.8.0 (2017-02-23) Hi Stephen, Stephen Gregoratto wrote on Sat, Apr 06, 2019 at 08:33:40PM +1100: > 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 . That argument makes sense. I simplified your patch before commit, though; no separate enum constant is needed in such a case. Also, since is fully handled with your patch, exclude it from the statistics; see the committed patch below. Thanks, Ingo Log Message: ----------- treat just like ; simplified version of a patch from Stephen Gregoratto Modified Files: -------------- docbook2mdoc: parse.c statistics.c Revision Data ------------- Index: parse.c =================================================================== RCS file: /home/cvs/mdocml/docbook2mdoc/parse.c,v retrieving revision 1.14 retrieving revision 1.15 diff -Lparse.c -Lparse.c -u -p -r1.14 -r1.15 --- parse.c +++ parse.c @@ -170,6 +170,7 @@ static const struct element elements[] = { "sect2", NODE_SECTION }, { "section", NODE_SECTION }, { "sgmltag", NODE_SGMLTAG }, + { "simpara", NODE_PARA }, { "simplelist", NODE_SIMPLELIST }, { "spanspec", NODE_SPANSPEC }, { "structfield", NODE_PARAMETER }, Index: statistics.c =================================================================== RCS file: /home/cvs/mdocml/docbook2mdoc/statistics.c,v retrieving revision 1.13 retrieving revision 1.14 diff -Lstatistics.c -Lstatistics.c -u -p -r1.13 -r1.14 --- statistics.c +++ statistics.c @@ -402,6 +402,7 @@ main(int argc, char *argv[]) table_add("sect3", NULL); table_add("sect4", NULL); table_add("sgmltag", "TEXT"); + table_add("simpara", NULL); table_add("simplelist", "member"); table_add("structfield", "TEXT"); -- To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv