]> Savannah Git Hosting - gnulib.git/commitdiff
gen-uni-tables: Keep line number better up-to-date.
authorBruno Haible <bruno@clisp.org>
Fri, 23 Feb 2024 17:21:46 +0000 (18:21 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 23 Feb 2024 17:21:46 +0000 (18:21 +0100)
* lib/gen-uni-tables.c (fill_width, fill_org_lbp): Increase lineno by 1
when reading a blank line.

ChangeLog
lib/gen-uni-tables.c

index ec1e23d62f4e4641776ea344f79fc19c72869fe3..ed8267626c536d28fa90180d808a664047c955ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-23  Bruno Haible  <bruno@clisp.org>
+
+       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  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Follow gnulib-tool changes, part 27.
index ea5e6aa3f8087ce75f3d6d8431f49639e4578656..90d33abab17e60599032685e3ec9274202878845 100644 (file)
@@ -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');