[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Wed, 3 Apr 2024 07:36:12 -0400 (EDT) |
branch: master
commit 46cc9b0f1e3f710cf7d30f0fa607feb33b17e449
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Apr 3 12:33:21 2024 +0100
* info/scan.c (scan_reference_marker): If a file name component
was read, allow what follows to be blank. This supports cross
references like '*note (manual)::'.
---
ChangeLog | 6 ++++++
info/scan.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8dc2aeb141..628679355d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-04-03 Patrice Dumas <pertusus@free.fr>
+
+ * info/scan.c (scan_reference_marker): If a file name component
+ was read, allow what follows to be blank. This supports cross
+ references like '*note (manual)::'.
+
2024-04-02 Gavin Smith <gavinsmith0123@gmail.com>
* doc/texinfo.texi (Syntax Highlighting, HTML Xref):
diff --git a/info/scan.c b/info/scan.c
index 4b7dfe8754..007498dabc 100644
--- a/info/scan.c
+++ b/info/scan.c
@@ -1135,7 +1135,7 @@ scan_reference_label (REFERENCE *entry, int in_index)
len = read_quoted_string (inptr + label_len, ":", max_lines,
&entry->nodename);
canonicalize_whitespace (entry->nodename);
- if (!len)
+ if (!len && !entry->filename)
return 0; /* Input invalid. */
label_len += len;
}