=================================================================== RCS file: /cvs/docbook2mdoc/statistics.c,v retrieving revision 1.4 retrieving revision 1.7 diff -u -p -r1.4 -r1.7 --- docbook2mdoc/statistics.c 2019/04/03 09:49:49 1.4 +++ docbook2mdoc/statistics.c 2019/04/03 14:02:07 1.7 @@ -1,4 +1,4 @@ -/* $Id: statistics.c,v 1.4 2019/04/03 09:49:49 schwarze Exp $ */ +/* $Id: statistics.c,v 1.7 2019/04/03 14:02:07 schwarze Exp $ */ /* * Copyright (c) 2019 Ingo Schwarze * @@ -225,13 +225,15 @@ parse_file(int fd, char *fname) continue; } if (in_arg) { - if (in_quotes == 0 && b[pend] == '"') { - in_quotes = 1; + if (in_quotes == 0 && + (b[pend] == '\'' || b[pend] == '"')) { + in_quotes = b[pend] == '"' ? 2 : 1; pend++; continue; } if (advance(b, rlen, &pend, - in_quotes ? "\"" : " >") && rsz > 0) + in_quotes == 2 ? "\"" : + in_quotes == 1 ? "'" : " >") && rsz > 0) break; in_arg = in_quotes = elem_end = 0; if (b[pend] == '>') { @@ -346,7 +348,33 @@ main(int argc, char *argv[]) /* Exclude relations that are already fully implemented. */ if (show_all == 0) { + table_add("chapter", "title"); + table_add("entry", NULL); + table_add("informaltable", "tgroup"); + table_add("itemizedlist", "listitem"); + table_add("listitem", NULL); + table_add("orderedlist", "listitem"); table_add("para", NULL); + table_add("refsect1", "title"); + table_add("refsect2", "title"); + table_add("row", "entry"); + table_add("section", "title"); + table_add("sect1", "title"); + table_add("sect2", "title"); + table_add("sect3", "title"); + table_add("sect4", "title"); + table_add("table", "tgroup"); + table_add("table", "title"); + table_add("tbody", "row"); + table_add("term", NULL); + table_add("tgroup", "colspec"); + table_add("tgroup", "tbody"); + table_add("tgroup", "thead"); + table_add("thead", "row"); + table_add("title", "TEXT"); + table_add("variablelist", "varlistentry"); + table_add("varlistentry", "listitem"); + table_add("varlistentry", "term"); } table_add(NULL, NULL);