gbranden pushed a commit to branch master
in repository groff.

commit 58e617ca9762040919a929ac79cf744ff89d766d
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jul 30 14:51:47 2022 -0500

    [tbl]: Don't overprint a doublebox bottom, either.
    
    * src/preproc/tbl/table.cpp (table::do_bottom): Avoid overprinting a
      double-boxed table's bottom border on nroff devices.
---
 ChangeLog                 | 6 ++++++
 src/preproc/tbl/table.cpp | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index d225c7956..c4f4acd18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-07-30  G. Branden Robinson <[email protected]>
+
+       * src/preproc/tbl/table.cpp (table::do_bottom): Avoid
+       overprinting a double-boxed table's bottom border on nroff
+       devices.
+
 2022-07-30  G. Branden Robinson <[email protected]>
 
        [tbl]: Expand regression test for Savannah #49490.  Check for
diff --git a/src/preproc/tbl/table.cpp b/src/preproc/tbl/table.cpp
index dcf77b05d..39ea5621e 100644
--- a/src/preproc/tbl/table.cpp
+++ b/src/preproc/tbl/table.cpp
@@ -3030,6 +3030,10 @@ void table::do_bottom()
   // Teletype Model 37 with half-line motions).
   if (flags & (BOX | DOUBLEBOX | ALLBOX))
     prints(".if n .sp\n");
+  // Space again for the doublebox option, until we can draw that more
+  // attractively; see Savannah #43637.
+  if (flags & DOUBLEBOX)
+    prints(".if n .sp\n");
   prints("." RESET_MACRO_NAME "\n"
         ".fc\n"
         ".cp \\n(" COMPATIBLE_REG "\n");

_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to