samar121 commented on PR #9888:
URL: https://github.com/apache/nifi/pull/9888#issuecomment-2831823300
Thanks a lot for the thoughtful feedback, @rfellows!
You were absolutely right — the earlier change was too aggressive in
preserving all leading whitespace, which unintentionally affected how the lines
wrapped, especially when there were multiple spaces between words.
I've updated the logic to preserve leading whitespace only at the beginning
of each line (i.e., at the start of a string or immediately after a line break)
while allowing normal whitespace collapsing between words,
✅ After the change — for a string like Hello
World

✅ Leading space preservation and unintended indentation issues are also
fixed:

Please let me know if you spot anything else!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]