summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-03 13:02:11 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-03 13:02:11 +0000
commit8816b91eee3bcfacd831e3cefe5da84702ba2b03 (patch)
tree7e81ded606c17f5f321eabff09e1a6d1e495f582 /main.h
parentb4303641a5d76b39d16c4c9d86f415dff39f8c68 (diff)
downloadmandoc-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 'main.h')
-rw-r--r--main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.h b/main.h
index 8298ec12..ba8ded05 100644
--- a/main.h
+++ b/main.h
@@ -1,7 +1,7 @@
/* $Id$ */
/*
* 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 *);