Page 1 of 1

Keep text format (or at least line-breaks) when copy/pasting

Posted: Sun Jul 24, 2016 1:11 pm
by Irrlicht
Nothing big or really needed, but here it is.

I'm sometimes in need of copying macro output from chat to paste it somewhere (usually, token notes).
Problem is, if the text in the chat has line breaks (<br> in the macro code), they aren't kept when pasting, and text becomes all subsequent, forming a nearly unreadable wall.
This can be bypassed by using <pre> in the macro code, but this has another problem: text can't be wrapped. If I have a long text and use <pre> in a macro, the output will be a long line that will exceed the chat's width (and not even generating a horizontal scrollbar), instead of going to the next line.
Using <pre style='white-space: pre-wrap'> yields no benefit, since apparently MapTool doesn't recognize that style.

So, a way of retaining line breaks would be very welcome, for me.