Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 220 by
MrSo...@gmail.com: Line brake in populateContext
http://code.google.com/p/xdocreport/issues/detail?id=220
What steps will reproduce the problem?
1. Using populateContext to put content in Freemarker fields
2. One field have to be replaced with multiple-line content
3. Replacing "\n" with "<w:br />" and put it with context.put(...)
4. In output docx appears unbreakable newline
What is the expected output? What do you see instead?
I need regular newline instead unbreakable newline
What version of the product are you using? On what operating system?
- latest
- win7
Please provide any additional information below.
I did "removeAllPreprocessors()" and add only MacroButtonNamePreprocessor.
In it I remove all "w:fldChar" fields ("begin: and "end" of MACROBUTTON
field) and replace name of "<w:instrText xml:space="preserve">MACROBUTTON
##611043780194## NAME</w:instrText>" with "<w:instrText
xml:space="preserve">{field3}</w:instrText>". I can't change name of this
tag =(
When content stay with "\n" in output there is no line break at all.
Sorry but I didn't understood, what happens after populateContext, what
function working after.