Discussion and Support

Skip to content

It is currently Sat Feb 24, 2018 8:51 am 

Reply to topic  [ 1 post ] 

Previous topic | Next topic 

  Print view

Author Message
User avatar  Offline
Joined: Mon Feb 09, 2009 10:53 am
Posts: 419
 Post subject: Keep text format (or at least line-breaks) when copy/pasting
PostPosted: Sun Jul 24, 2016 12:11 pm 
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..."

Display posts from previous:  Sort by  
Reply to topic  [ 1 post ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 2 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman