[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Avoid unnecessary documentlanguage extra value
From: |
Gavin D. Smith |
Subject: |
branch master updated: Avoid unnecessary documentlanguage extra value |
Date: |
Sat, 04 Sep 2021 16:02:17 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 0e12bee Avoid unnecessary documentlanguage extra value
0e12bee is described below
commit 0e12beecd2d52a3540e0f93ddb031357a4912770
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Sep 4 21:01:47 2021 +0100
Avoid unnecessary documentlanguage extra value
* tp/Texinfo/XS/parsetexi/parser.c (wipe_global_info): Set
global_documentlanguage to null rather than an empty string.
This avoids a "documentlanguage" key being set on some @def*
commands (like @defop) where there is no @documentlanguage directive
in the document. Report from Patrice.
---
ChangeLog | 10 ++++++++++
tp/Texinfo/XS/parsetexi/parser.c | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 9b07e77..253b5f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2021-09-04 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Avoid unnecessary documentlanguage extra value
+
+ * tp/Texinfo/XS/parsetexi/parser.c (wipe_global_info): Set
+ global_documentlanguage to null rather than an empty string.
+ This avoids a "documentlanguage" key being set on some @def*
+ commands (like @defop) where there is no @documentlanguage directive
+ in the document. Report from Patrice.
+
2021-09-04 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Config.pm (Texinfo::MainConfig::new):
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index eb80a7e..40b8e46 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -288,7 +288,7 @@ wipe_global_info (void)
if (!global_documentlanguage_fixed)
{
free (global_documentlanguage);
- global_documentlanguage = strdup ("");
+ global_documentlanguage = 0;
}
global_kbdinputstyle = kbd_distinct;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Avoid unnecessary documentlanguage extra value,
Gavin D. Smith <=