texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * tp/Texinfo/XS/parsetexi/end_line.c (end_line) <


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/end_line.c (end_line) <def command>: Only store documentlanguage if set. From Patrice.
Date: Sat, 28 Aug 2021 14:53:46 -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 b766c76  * tp/Texinfo/XS/parsetexi/end_line.c (end_line) <def 
command>: Only store documentlanguage if set.  From Patrice.
b766c76 is described below

commit b766c76281a2f0d5f16c27ca6424f1d816cf0fb3
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Aug 28 19:53:35 2021 +0100

    * tp/Texinfo/XS/parsetexi/end_line.c (end_line) <def command>:
    Only store documentlanguage if set.  From Patrice.
---
 ChangeLog                          | 5 +++++
 tp/Texinfo/XS/parsetexi/end_line.c | 7 ++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f7f385c..779c565 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-08-28  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/parsetexi/end_line.c (end_line) <def command>:
+       Only store documentlanguage if set.  From Patrice.
+
 2021-08-28  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/ParserNonXS.pm(_parse_def, _end_line): put
diff --git a/tp/Texinfo/XS/parsetexi/end_line.c 
b/tp/Texinfo/XS/parsetexi/end_line.c
index ba281bf..a5bd0ce 100644
--- a/tp/Texinfo/XS/parsetexi/end_line.c
+++ b/tp/Texinfo/XS/parsetexi/end_line.c
@@ -1,5 +1,5 @@
 /* end_line.c -- what to do at the end of a whole line of input */
-/* Copyright 2010-2019 Free Software Foundation, Inc.
+/* Copyright 2010-2021 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -2163,8 +2163,9 @@ end_line (ELEMENT *current)
                       || def_command == CM_deftypeivar
                       || def_command == CM_deftypecv))
                 {
-                  add_extra_string_dup (current->parent, "documentlanguage",
-                                        global_documentlanguage);
+                  if (global_documentlanguage)
+                    add_extra_string_dup (current->parent, "documentlanguage",
+                                          global_documentlanguage);
                 }
               else
                 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]