diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-04-08 11:56:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-04-08 11:56:03 +0000 |
commit | d8e6af26addbffe69059f3b4e263563cdc3f3b53 (patch) | |
tree | 4e744a6bba6a794075e7ac543e3f9452bf5dba4a /html.c | |
parent | 78bf8cb3c86e47d614af8f2629bdc00e459cf758 (diff) | |
download | mandoc-d8e6af26addbffe69059f3b4e263563cdc3f3b53.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |