aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit637b922ab2b2aa18419a0abed18ae9d2fed4e50a (patch)
tree43a6a061839c1d2a8278fd43533f585b09e81304 /mdoc_validate.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 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 8a8176b9..82c5e43c 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.383 2020/04/06 10:16:17 schwarze Exp $ */
+/* $Id: mdoc_validate.c,v 1.384 2020/04/08 11:56:03 schwarze Exp $ */
/*
* Copyright (c) 2010-2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -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;
}
}