Hello,
I made a template-editor wich uses Texdynamic as rtf-editor.
The user can define letters with tags wich are replaced later with the appropriate values.
When I select a text with more than 3 end-of-line caracters in it i run into a problem.
for example
line1
line2
line3
line4
These are the lines selected (each with a end-of-line carater at the end)
This is the code i use to read, add tags and replace the text. (the add tags parts i left out here because that's not the problem)
line1
line2 line3
line3 line4
line4
This is the text that is replaced after the code above is executed.
Am i doing something wrong, is there another way? The formatting needs to be replaced also
When there are less than 3 end-of-line caracters in the selection it all works as i intended it to work. :?
Thx ia.