From 68395bc407ff052b6f93f480c0ca67555804ac1e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 23 Feb 2024 18:21:46 +0100 Subject: [PATCH] gen-uni-tables: Keep line number better up-to-date. * lib/gen-uni-tables.c (fill_width, fill_org_lbp): Increase lineno by 1 when reading a blank line. --- ChangeLog | 6 ++++++ lib/gen-uni-tables.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index ec1e23d62f..ed8267626c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-02-23 Bruno Haible + + gen-uni-tables: Keep line number better up-to-date. + * lib/gen-uni-tables.c (fill_width, fill_org_lbp): Increase lineno by 1 + when reading a blank line. + 2024-02-23 Collin Funk gnulib-tool.py: Follow gnulib-tool changes, part 27. diff --git a/lib/gen-uni-tables.c b/lib/gen-uni-tables.c index ea5e6aa3f8..90d33abab1 100644 --- a/lib/gen-uni-tables.c +++ b/lib/gen-uni-tables.c @@ -6616,6 +6616,8 @@ fill_width (const char *width_filename) c = getc (stream); if (c == EOF) break; + if (c == '\n') + continue; if (c == '#') { do c = getc (stream); while (c != EOF && c != '\n'); @@ -8571,6 +8573,8 @@ fill_org_lbp (const char *linebreak_filename) c = getc (stream); if (c == EOF) break; + if (c == '\n') + continue; if (c == '#') { do c = getc (stream); while (c != EOF && c != '\n'); -- 2.39.5