Atte André Jensen wrote:
I think my problems might relate to the advice you gave me last week
regarding "repeating part of document".
Nope, found the problem to be something completely else, \r\n versus \n:
Inside my part-repeating code I extract the text as string from a
cursor, and a simple replace of carriage returns works!
loop = rangeCursor.String
loop = loop.replace('###GROUP_LOOP_BEGIN###','')
loop = loop.replace('###GROUP_LOOP_END###','')
# this makes it work
loop = string.replace(loop, '\r\n', '\r')
loop = string.replace(loop, '\n', '\r')
I was led on the right track when looking on the odt I generated after
replacing with "view->nonprinting characters" switched. Here the usual
"reverse P" was replaced with a "arrow as found the return key"...
Very odd, and very glad I figured it out.
--
peace, love & harmony
Atte
http://atte.dk | http://myspace.com/attejensen
http://anagrammer.dk | http://modlys.dk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]