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

If you have an idea for a new feature, please discuss it in the main MapTool forum first, then post a summary of the discussion here. Use the first Sticky as a template.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
User avatar
Irrlicht
Dragon
Posts: 426
Joined: Mon Feb 09, 2009 10:53 am

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

Post 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.
"There are many ways my Son, to find where the souls of Demons remain...
But it takes only one second of despair and of doubt until, at last, your Soul they will gain..."

Post Reply

Return to “Feature Requests”