aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-04-08 11:56:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-04-08 11:56:03 +0000
commit637b922ab2b2aa18419a0abed18ae9d2fed4e50a (patch)
tree43a6a061839c1d2a8278fd43533f585b09e81304 /html.c
parentf4c07cc80595b2276a99fd6e5c95c734187feaab (diff)
downloadmandoc-637b922ab2b2aa18419a0abed18ae9d2fed4e50a.tar.gz
mandoc-637b922ab2b2aa18419a0abed18ae9d2fed4e50a.tar.zst
mandoc-637b922ab2b2aa18419a0abed18ae9d2fed4e50a.zip
Use a separate node->tag attribute rather than abusing the node->string
attribute for the purpose. No functional change intended. The purpose is to make it possible to later attach tags to text nodes.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index 15b87236..e7adea02 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.266 2020/04/07 22:56:02 schwarze Exp $ */
+/* $Id: html.c,v 1.267 2020/04/08 11:56:03 schwarze Exp $ */
/*
* Copyright (c) 2011-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -344,8 +344,8 @@ html_make_id(const struct roff_node *n, int unique)
unsigned int slot;
int suffix;
- if (n->string != NULL)
- buf = mandoc_strdup(n->string);
+ if (n->tag != NULL)
+ buf = mandoc_strdup(n->tag);
else {
switch (n->tok) {
case MDOC_Sh: