From 637b922ab2b2aa18419a0abed18ae9d2fed4e50a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 8 Apr 2020 11:56:03 +0000 Subject: 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. --- mdoc_validate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mdoc_validate.c') 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 * Copyright (c) 2008-2012 Kristaps Dzonsons @@ -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; } } -- cgit v1.2.3