deri pushed a commit to branch master
in repository groff.

commit dd9c0f326a11edad2b456ab5853b4eaa3e8785f4
Author: Deri James <[email protected]>
AuthorDate: Fri Oct 11 00:17:55 2024 +0100

    Flush output on direction change
    
    * src/devices/gropdf/gropdf.pl: When switching writing
    direction (\X'pdf: xrev') ensure any buffered output is
    flushed.
---
 ChangeLog                    | 6 ++++++
 src/devices/gropdf/gropdf.pl | 1 +
 2 files changed, 7 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 7129aba6e..8fdf61e74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-10-11  Deri James  <[email protected]>
+
+       * src/devices/gropdf/gropdf.pl: When switching writing
+       direction (\X'pdf: xrev') ensure any buffered output is
+       flushed.
+
 2024-10-06  G. Branden Robinson <[email protected]>
 
        * src/preproc/tbl/table.cpp (table::add_entry): Refactor match
diff --git a/src/devices/gropdf/gropdf.pl b/src/devices/gropdf/gropdf.pl
index 1102364b0..d83f8e17b 100644
--- a/src/devices/gropdf/gropdf.pl
+++ b/src/devices/gropdf/gropdf.pl
@@ -1791,6 +1791,7 @@ sub do_x
            }
            elsif (lc($xprm[1]) eq 'xrev')
            {
+               PutLine(0);
                $xrev=!$xrev;
            }
            elsif (lc($xprm[1]) eq 'markstart')

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

Reply via email to