From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id d05a5fbc for ; Tue, 13 Nov 2018 05:19:46 -0500 (EST) Date: Tue, 13 Nov 2018 05:19:46 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: texi2mdoc: If "@node Top" is missing, assume the document starts at X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-Id: <381d10c9a17ef8ad@fantadrom.bsd.lv> Log Message: ----------- If "@node Top" is missing, assume the document starts at "@top". For example, this occurs in ffmpeg(1). Issue reported and workaround proposed by Michael Forney . Modified Files: -------------- texi2mdoc: main.c Revision Data ------------- Index: main.c =================================================================== RCS file: /home/cvs/mdocml/texi2mdoc/main.c,v retrieving revision 1.72 retrieving revision 1.73 diff -Lmain.c -Lmain.c -u -p -r1.72 -r1.73 --- main.c +++ main.c @@ -1988,6 +1988,13 @@ dosection(struct texi *p, enum texicmd c switch (cmd) { case (TEXICMD_TOP): sec = 0; + if (p->nodesz) + break; + texiwarn(p, "@node Top is missing, assuming it implicitly"); + p->nodesz++; + p->ign--; + p->nodecur = texicache(p, "Top", 3); + teximdocopen(p, pos); break; case (TEXICMD_APPENDIX): case (TEXICMD_CHAPTER): -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv