diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-03 13:02:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-03 13:02:11 +0000 |
commit | 8816b91eee3bcfacd831e3cefe5da84702ba2b03 (patch) | |
tree | 7e81ded606c17f5f321eabff09e1a6d1e495f582 /mandocd.c | |
parent | b4303641a5d76b39d16c4c9d86f415dff39f8c68 (diff) | |
download | mandoc-8816b91eee3bcfacd831e3cefe5da84702ba2b03.tar.gz |
Reset HTML formatter state, in particular the id_unique hash,
after processing each manual page, such that the next page
starts from a clean state and doesn't continue suffix numbering.
Issue found while looking at https://github.com/Debian/debiman/issues/48
which was brought up by Orestis Ioannou <oorestisime at github>.
Diffstat (limited to 'mandocd.c')
-rw-r--r-- | mandocd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* $Id$ */ /* * Copyright (c) 2017 Michael Stapelberg <stapelberg@debian.org> - * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2017, 2019 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -213,6 +213,8 @@ main(int argc, char *argv[]) process(parser, outtype, formatter); mparse_reset(parser); + if (outtype == OUTT_HTML) + html_reset(formatter); fflush(stdout); fflush(stderr); |