Summary
When I try to copy text from a cgit diff view in Ladybird, the newlines are not preserved.
Operating system
Linux
Steps to reproduce
- Go to a cgit based diff view, e.g. https://git.zx2c4.com/cgit/diff/
- Select some of the lines of text
- Copy the text (Ctrl+C)
- Open a text editor, e.g. kate
- Paste the text (Ctrl+V)
Expected behavior
The text should be formatted with newlines.
Actual behavior
The text has no newlines.
Notes:
- The expected behaviour is observed in Firefox.
- Newlines are created on other pages, e.g. from the readme -- https://git.zx2c4.com/cgit/about/
- On the diff view the lines are
divs; on the about view the lines are ol/li. I've not tested other cases, e.g. p elements.
URL for a reduced test case
https://git.zx2c4.com/cgit/diff/
HTML/SVG/etc. source for a reduced test case
<div>lorem</div>
<div>ipsum</div>
<div>dolor</div>
Log output and (if possible) backtrace
Screenshots or screen recordings
No response
Build flags or config settings
No response
Contribute a patch?
Summary
When I try to copy text from a cgit diff view in Ladybird, the newlines are not preserved.
Operating system
Linux
Steps to reproduce
Expected behavior
The text should be formatted with newlines.
Actual behavior
The text has no newlines.
Notes:
divs; on the about view the lines areol/li. I've not tested other cases, e.g.pelements.URL for a reduced test case
https://git.zx2c4.com/cgit/diff/
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
No response
Build flags or config settings
No response
Contribute a patch?