Use case or problem
Apple Copy/Pasting Includes Carriage Returns (Char13) + Line Feed Char(10) this creates unnecessary spacing in documents and is tedious to remove.
Proposed solution
Add a setting so that pasting will replace chr(13)+chr(10) back-to-back with a single carriage return (or optionally the line feed instead but I personally prefer the CR over the LF)
Current workaround (optional)
Replace doesn’t work well with both characters being invisible
Related feature requests (optional)
Related to this closed bug report: forum.obsidian.md/t/pasting-formatted-text-results-in-doubled-newlines/35422
1 Like
No, apple doesn’t include 13 10. In that it is explained that apple uses a custom RTF format and in that RTF format the extra paragraph are present.
Apple uses CR+LF (Carriage Return plus Line Feed - chr(13)+chr(10)) when entering returns in many cases that end up in the clipboard. Would be nice to have a setting to auto-replace these upon paste to be a single CR
Can you show me an example of this happening using a clipboard visualizer tool?
Where was this copied from and which program did you use?
chr(13)+chr(10) so 0x0d and 0x0a respectively for CR+LF
TextEdit as plaintext and same result when manually typing into the tool: www. soscisurvey. de/tools/view-chars.php
You need to use a macos native clipboard viewer for this, otherwise you just get the post processing done by your browser.
Something like this
That only shows the “0D” (CR). I usually find when I copy paste from like a portion of a ChatGPT thread it has the CR+LF issues. (This of course comes from the browser, in my case chrome.)