[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #60673] adjustment algorithm should disregard nonadjusted lines in
From: |
G. Branden Robinson |
Subject: |
[bug #60673] adjustment algorithm should disregard nonadjusted lines in its alternation pattern |
Date: |
Sat, 4 Sep 2021 09:42:20 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #60673 (project groff):
Status: None => In Progress
Assigned to: None => gbranden
_______________________________________________________
Follow-up Comment #6:
Confirmed; my change to fix bug #60189 also addresses this issue as a
collateral benefit.
--- 60673-groff-1.22.4 2021-09-04 23:38:39.425040471 +1000
+++ 60673-groff-branden-HEAD 2021-09-04 23:37:42.812757531 +1000
@@ -1,14 +1,14 @@
While the example in bug 57836’s original report is somewhat
contrived and a bit of an edge case in real life, there turns out
-to be a more innate bug in grotty’s balancing algorithm. As
+to be a more innate bug in grotty’s balancing algorithm. As
mentioned before (and easily observable), when grotty adds spaces
to a line in the process of justifying it, the algorithm it
utilizes adds spaces from opposite ends of each line. But when it
-adds this space, it does not take into account lines with no
+adds this space, it does not take into account lines with no
adjustment at all required. Therefore if space only need be added
to every other line of the text, all the space ends up being
added to the same end of the line, degrading the uniform grayness
-of the output, as can be seen in this example. There is one
+of the output, as can be seen in this example. There is one
fairly simple way to address this: grotty shouldn’t "count" lines
that don’t need to be adjusted; instead, it should apply the
alternation pattern only to those lines that do need adjustment.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60673>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/