|
|
Thanks Mathias,
I've used that method before, with * as the symbol for adding line breaks.
This is kind of the opposite problem. The user already have the line breaks
in the text they will be copy-pasting, I just want to preserve them.
Seems like the best way is to have multiple text fields in the mogrt, and
let them paste each paragraph in its own field. That's not as user-friendly
as I'd hoped. :-(
/jarle
Mathias Möhl wrote:
---------------------------------------
> Hmm, if MOGRTS are really limited that way, the only workaround that comes
to my mind is that you use another separator symbol for the linebreaks.
> So the user, for example, enters
> “This is line one and#this is line two and#a third one”
> using the # symbol instead of a line break and then
> in the expression you do
> lines = txt.split(/#/);
> instead of
> lines = txt.split(/\r|\n|\x03/);
> such that it splits the text at the # symbol instead of at actual line
breaks.
|
|