=================================================================== RCS file: /cvs/texi2mdoc/main.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -p -r1.72 -r1.73 --- texi2mdoc/main.c 2018/11/13 08:45:29 1.72 +++ texi2mdoc/main.c 2018/11/13 10:19:16 1.73 @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.72 2018/11/13 08:45:29 schwarze Exp $ */ +/* $Id: main.c,v 1.73 2018/11/13 10:19:16 schwarze Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -1988,6 +1988,13 @@ dosection(struct texi *p, enum texicmd cmd, size_t *po 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):