By: Valentin
Date: 2015-08-12
Time: 09:54
|
New lines from txt to docx
Hello
I want to merge a txt file content into a [onshow.variable] field in a docx file. This works, but not with line breaks. Normal txt line breaks (Enter pressed in txt editor) are not merged, PHP line breaks \n \r or \r\n are also not merged. $variable = "Hello \n line break"; is displayed as "Hello line break" in docx without the \n tag but still with no line break. How can I convert the line braks in my txt file to docx line breaks when merged?
Thank you
Valentin
|
By: Skrol29
Date: 2015-08-12
Time: 10:28
|
Re: New lines from txt to docx
|
By: Valentin
Date: 2015-08-14
Time: 09:00
|
Re: New lines from txt to docx
Thanks for the response, I tried to use [onshow.variable;strconv=no] as field and added </w:p><w:p> after each line in the txt. But the </w:p><w:p> tags are still displayed as text in the docx and not recognized as xml tags... Is there any other way to insert line breaks with openTBS?
|
|
Posting in progress.
Please wait...
|