[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/parsetexi/separator.c (handle_com
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/XS/parsetexi/separator.c (handle_comma): when at the end of a line after strcspn call, do not prepend to argument text, as the line is empty. |
Date: |
Sun, 12 Mar 2023 14:13:50 -0400 |
This is an automated email from the git hooks/post-receive script.
pertusus pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 2463b4cc5d * tp/Texinfo/XS/parsetexi/separator.c (handle_comma): when
at the end of a line after strcspn call, do not prepend to argument text, as
the line is empty.
2463b4cc5d is described below
commit 2463b4cc5df1618187305cc613b11bd10562f02b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Mar 12 19:13:41 2023 +0100
* tp/Texinfo/XS/parsetexi/separator.c (handle_comma): when at the end
of a line after strcspn call, do not prepend to argument text, as the
line is empty.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/separator.c | 6 ++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f34ef6eaff..67b174e5aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-03-12 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/separator.c (handle_comma): when at the end
+ of a line after strcspn call, do not prepend to argument text, as the
+ line is empty.
+
2023-03-12 Gavin Smith <gavinsmith0123@gmail.com>
Roman rather than bold for &rest etc.
diff --git a/tp/Texinfo/XS/parsetexi/separator.c
b/tp/Texinfo/XS/parsetexi/separator.c
index dd0790cc55..94b278deba 100644
--- a/tp/Texinfo/XS/parsetexi/separator.c
+++ b/tp/Texinfo/XS/parsetexi/separator.c
@@ -659,8 +659,7 @@ handle_comma (ELEMENT *current, char **line_inout)
text_append_n (&arg->text, line, 1);
break;
default:
- /* FIXME probably useless, as line should be an empty string?
*/
- text_append (&arg->text, line);
+ /* at the end of line */
line = next_text (e);
if (!line)
goto funexit;
@@ -721,8 +720,7 @@ handle_comma (ELEMENT *current, char **line_inout)
text_append_n (&arg->text, line, 1);
break;
default:
- /* FIXME probably useless, as line should be an empty string?
*/
- text_append (&arg->text, line);
+ /* at the end of line */
free (alloc_line);
line = alloc_line = next_text (e);
if (!alloc_line)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/parsetexi/separator.c (handle_comma): when at the end of a line after strcspn call, do not prepend to argument text, as the line is empty.,
Patrice Dumas <=