CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2019/11/09 07:39:42
Modified files: usr.bin/mandoc : mandoc_parse.h roff.c Log message: In the past, generating comment nodes stopped at the .TH or .Dd macro, which is usually close to the beginning of the file, right after the Copyright header comments. But espie@ found horrible input files in the textproc/fstrcmp port that generate lots of parse nodes before even getting to the header macro. In some formatters, comment nodes after some kinds of real content triggered assertions. So make sure generation of comment nodes stops once real content is encountered.