[BRLTTY] Preserving presentation when copying to the clipboard

Dave Mielke Dave at mielke.cc
Sun Mar 30 16:53:04 UTC 2025


[quoted lines by Sébastien Hinderer on 2025/03/30 at 15:33 +0200]

>We believe that, currently, it is not really possible to preserve the
>presentation of, say, a block of code when it gets copied to the
>clipboard.

I haven't had a problem with this. You need to do a rectangular copy. Also, you need to ensure that autoindentaton is turned off in the editor.

>If the copy is done in a linear way then the end of lines are removed

Yes.

>whereas, if rectangular copy is used one gets a geometric rectangle,
>which may include spaces one does not really care about.

Which spaces. I believe (will have to refresh my memory, though) that trailing blanks are removed.

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |

http://mielke.cc/xmother.html (Letter from a Feminist ex-Mother)


More information about the BRLTTY mailing list