[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Fri, 26 Apr 2024 18:11:20 -0400 (EDT) |
branch: master
commit a6ce6d2a47e3732a34502700162c88363acfbd9b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Apr 21 23:44:16 2024 +0200
* tp/Texinfo/XS/parsetexi/parser.c (check_valid_nesting): fix
condition on contain_plain_text NOBRACE_symbol and CF_in_heading_spec.
---
ChangeLog | 5 +++++
tp/Texinfo/XS/parsetexi/parser.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 19fc889553..c7ccb9c16a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-21 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/parser.c (check_valid_nesting): fix
+ condition on contain_plain_text NOBRACE_symbol and CF_in_heading_spec.
+
2024-04-21 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/ParserNonXS.pm (%in_plain_text_commands),
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index 62c4b9cb93..4e11414587 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -1193,7 +1193,7 @@ check_valid_nesting (ELEMENT *current, enum command_id
cmd)
if ((cmd_flags & CF_accent)
|| (cmd_flags & CF_nobrace
&& command_data(cmd).data == NOBRACE_symbol
- && (!cmd_flags & CF_in_heading_spec)))
+ && (!(cmd_flags & CF_in_heading_spec))))
ok = 1;
else if (cmd_flags & CF_brace
&& command_data(cmd).data == BRACE_noarg)