groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/02: [tbl]: Really fix Savannah #63449.


From: G. Branden Robinson
Subject: [groff] 02/02: [tbl]: Really fix Savannah #63449.
Date: Wed, 11 Jan 2023 10:09:47 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 9b5c7d850934db2e9c4099e4c7df4875fc126b80
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Wed Jan 11 08:48:48 2023 -0600

    [tbl]: Really fix Savannah #63449.
    
    * src/preproc/tbl/main.cpp (process_format): "Or" on the `HAS_TOP_VLINE`
      flag if the format specification begins with a "|"; the beginning is a
      separate state in the FSM used to parse the description.  I missed it
      in commit 0e93ab4102, 1 December.
    
    Fixes <https://savannah.gnu.org/bugs/?63449>.
---
 ChangeLog                | 11 +++++++++++
 src/preproc/tbl/main.cpp |  1 +
 2 files changed, 12 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 7db3e7025..35c7c266a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2023-01-11  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [tbl]: Really fix Savannah #63449.
+
+       * src/preproc/tbl/main.cpp (process_format): "Or" on the
+       `HAS_TOP_VLINE` flag if the format specification begins with a
+       "|"; the beginning is a separate state in the FSM used to parse
+       the description.  I missed it in commit 0e93ab4102, 1 December.
+
+       Fixes <https://savannah.gnu.org/bugs/?63449>.
+
 2023-01-10  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/preproc/tbl/tests/\
diff --git a/src/preproc/tbl/main.cpp b/src/preproc/tbl/main.cpp
index 77a636888..516d1b649 100644
--- a/src/preproc/tbl/main.cpp
+++ b/src/preproc/tbl/main.cpp
@@ -837,6 +837,7 @@ format *process_format(table_input &in, options *opt,
        got_period = true;
        break;
       case '|':
+       opt->flags |= table::HAS_TOP_VLINE;
        vline_count++;
        break;
       case ' ':



reply via email to

[Prev in Thread] Current Thread [Next in Thread]