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 | f4f4629c2afc1c20003c12753c35528bd807708a (patch) | |
tree | 6997e819a3f1fcf467b4f433a29078d073df1fd7 /main.h | |
parent | fcbf62db4a9cb9f6fe8df047ee6ee41fee8dab76 (diff) | |
download | mandoc-f4f4629c2afc1c20003c12753c35528bd807708a.tar.gz mandoc-f4f4629c2afc1c20003c12753c35528bd807708a.tar.zst mandoc-f4f4629c2afc1c20003c12753c35528bd807708a.zip |
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 'main.h')
-rw-r--r-- | main.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ -/* $Id: main.h,v 1.29 2018/12/30 00:49:55 schwarze Exp $ */ +/* $Id: main.h,v 1.30 2019/03/03 13:02:11 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2014, 2015, 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 @@ -29,6 +29,7 @@ struct manoutput; void *html_alloc(const struct manoutput *); void html_mdoc(void *, const struct roff_meta *); void html_man(void *, const struct roff_meta *); +void html_reset(void *); void html_free(void *); void tree_mdoc(void *, const struct roff_meta *); |