Nicholas Moser created FOP-2961:
-----------------------------------
Summary: Avoid extra space after line break
Key: FOP-2961
URL: https://issues.apache.org/jira/browse/FOP-2961
Project: FOP
Issue Type: Improvement
Reporter: Nicholas Moser
Attachments: example-after.pdf, example-before.pdf, example.fo,
patch.diff
When a line break occurs at a breaking space with EN_START or EN_END alignment,
a space will be added as the first character on the newline. This can result in
a sort of "reverse indentation", where every line in a paragraph is indented a
single space while the first line is not.
I have attempted to fix this by moving the KnuthElements for the space before
the KnuthElements for where the break occurs. It is entirely possible there are
unintended side effects of this change. However from the testing I've done, it
seems to be an overall improvement. If anyone is aware of any issues arising
from this change I'd love to hear them.
I've included an example as well as the patch.
[^example.fo]
[^example-before.pdf]
^[^example-after.pdf]^
^^[^patch.diff]^^
--
This message was sent by Atlassian Jira
(v8.3.4#803005)