[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Wed, 23 Oct 2024 11:49:01 -0400 (EDT) |
branch: master
commit 2130bd653afa3aa66096806600c6ebdfbeb646a9
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Oct 23 17:48:54 2024 +0200
* tp/Texinfo/XS/parsetexi/close.c (remove_empty_content): check cmd to
determine if this is an @-command, we are in the parser, so it is
safe.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/close.c | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 327d640e97..38e36c2d41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-10-23 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/close.c (remove_empty_content): check cmd to
+ determine if this is an @-command, we are in the parser, so it is
+ safe.
+
2024-10-23 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/structuring_transfo/transformations.c
diff --git a/tp/Texinfo/XS/parsetexi/close.c b/tp/Texinfo/XS/parsetexi/close.c
index 3ec8fcca26..238bb3f5c7 100644
--- a/tp/Texinfo/XS/parsetexi/close.c
+++ b/tp/Texinfo/XS/parsetexi/close.c
@@ -151,7 +151,8 @@ remove_empty_content (ELEMENT *current)
if (current->e.c->contents.number == 1)
{
ELEMENT *child_element = last_contents_child (current);
- if (!(type_data[child_element->type].flags & TF_at_command)
+ if (!(!(type_data[child_element->type].flags & TF_text)
+ && child_element->e.c->cmd)
&& is_container_empty (child_element))
{
transfer_source_marks (child_element, current, 0);