=================================================================== RCS file: /cvs/mandoc/html.c,v retrieving revision 1.220 retrieving revision 1.221 diff -u -p -r1.220 -r1.221 --- mandoc/html.c 2017/09/06 16:24:25 1.220 +++ mandoc/html.c 2018/04/13 16:28:07 1.221 @@ -1,7 +1,7 @@ -/* $Id: html.c,v 1.220 2017/09/06 16:24:25 schwarze Exp $ */ +/* $Id: html.c,v 1.221 2018/04/13 16:28:07 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons - * Copyright (c) 2011-2015, 2017 Ingo Schwarze + * Copyright (c) 2011-2015, 2017, 2018 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -768,6 +768,32 @@ print_gen_decls(struct html *h) { print_word(h, ""); print_endline(h); +} + +void +print_gen_comment(struct html *h, struct roff_node *n) +{ + int wantblank; + + print_word(h, "") == NULL && + (wantblank || *n->string != '\0')) { + print_endline(h); + print_indent(h); + print_word(h, n->string); + wantblank = *n->string != '\0'; + } + n = n->next; + } + if (wantblank) + print_endline(h); + print_word(h, " -->"); + print_endline(h); + h->indent = 0; } void