From: Bruno Haible Date: Fri, 23 Feb 2024 17:21:46 +0000 (+0100) Subject: gen-uni-tables: Keep line number better up-to-date. X-Git-Tag: v1.0~384 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=68395bc407ff052b6f93f480c0ca67555804ac1e;p=gnulib.git 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. --- 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');