bug-groff
[Top][All Lists]
Advanced

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

[bug #64360] [gropdf] does not correctly handle white space after 'w' co


From: G. Branden Robinson
Subject: [bug #64360] [gropdf] does not correctly handle white space after 'w' command
Date: Tue, 27 Jun 2023 12:40:38 -0400 (EDT)

Follow-up Comment #8, bug #64360 (project groff):


[comment #3 comment #3:]
> How did you get groff to plant the space?

Whoops, I was momentarily smoking crack, and didn't answer the question you
asked.

I didn't hack GNU troff to produce a space here, but I did change it to
produce a newline, and as you will see it is obvious enough.


diff --git a/src/roff/troff/node.cpp b/src/roff/troff/node.cpp
index 341edce1f..fe18426e0 100644
--- a/src/roff/troff/node.cpp
+++ b/src/roff/troff/node.cpp
@@ -960,7 +960,7 @@ inline void troff_output_file::word_marker()
 {
   flush_tbuf();
   if (is_on())
-    put('w');
+    put("w\n");
 }
 
 inline void troff_output_file::right(hunits n)


I had to stash that change because it made _gropdf_ angry, and that's what led
to the current ticket.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64360>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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