summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.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
commitd8e6af26addbffe69059f3b4e263563cdc3f3b53 (patch)
tree4e744a6bba6a794075e7ac543e3f9452bf5dba4a /mdoc_validate.c
parent78bf8cb3c86e47d614af8f2629bdc00e459cf758 (diff)
downloadmandoc-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.c4
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;
}
}