summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/html.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-05-25 20:23:39 +0000
committerschwarze <schwarze@openbsd.org>2018-05-25 20:23:39 +0000
commit762c10160221b056a3de179225731b5d84a95b42 (patch)
tree3476c8f34a5f164d3e26dcd3a80c341e02581a0a /usr.bin/mandoc/html.h
parentDocument that "from local" and "for local" are still the defaults. (diff)
downloadwireguard-openbsd-762c10160221b056a3de179225731b5d84a95b42.tar.xz
wireguard-openbsd-762c10160221b056a3de179225731b5d84a95b42.zip
Do not write duplicate id= attributes, they violate HTML syntax.
Append suffixes for disambiguation. Issue first reported by Jakub Klinkovsky <j dot l dot k at gmx dot com> (Arch Linux).
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r--usr.bin/mandoc/html.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h
index d44224fe64c..7768fb99f43 100644
--- a/usr.bin/mandoc/html.h
+++ b/usr.bin/mandoc/html.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: html.h,v 1.51 2018/05/09 00:45:33 schwarze Exp $ */
+/* $OpenBSD: html.h,v 1.52 2018/05/25 20:23:39 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -133,5 +133,5 @@ void print_eqn(struct html *, const struct eqn_box *);
void print_paragraph(struct html *);
void print_endline(struct html *);
-char *html_make_id(const struct roff_node *);
+char *html_make_id(const struct roff_node *, int);
int html_strlen(const char *);