diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-25 20:23:51 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-05-25 20:23:51 +0000 |
commit | e23a77096fcef5d491ce207daaa9ce6f57384647 (patch) | |
tree | 24b06648acd1a99d0cd34b090e6f214722a4d325 /html.h | |
parent | 546accec72e5db867d299b5616c26abec3a86c7d (diff) | |
download | mandoc-e23a77096fcef5d491ce207daaa9ce6f57384647.tar.gz mandoc-e23a77096fcef5d491ce207daaa9ce6f57384647.tar.zst mandoc-e23a77096fcef5d491ce207daaa9ce6f57384647.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 'html.h')
-rw-r--r-- | html.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.89 2018/05/09 00:46:10 schwarze Exp $ */ +/* $Id: html.h,v 1.90 2018/05/25 20:23:51 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 *); |