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 /mdoc_validate.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 'mdoc_validate.c')
-rw-r--r-- | mdoc_validate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 7d31bc7b..06298747 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -2212,8 +2212,8 @@ post_hyph(POST_ARGS) if (*cp == '-' && isalpha((unsigned char)cp[-1]) && isalpha((unsigned char)cp[1])) { - if (n->string == NULL && n->flags & NODE_ID) - n->string = mandoc_strdup(nch->string); + if (n->tag == NULL && n->flags & NODE_ID) + n->tag = mandoc_strdup(nch->string); *cp = ASCII_HYPH; } } |