scriptlet4docx
scriptlet4docx copied to clipboard
Fully functional groovy template scriptlets inside a docx document. No need to edit docx xml source code. All scripting can be written in MS Word.
For TableScriptingRowProcessor.java private static Pattern groovyFormPattern = Pattern .compile("\\$\\[((.*?)(@\\w+).*?)\\]", Pattern.DOTALL | Pattern.MULTILINE); we need to change this to private static Pattern groovyFormPattern = Pattern .compile("\\$\\[((.*?)(@[\\w+\\W+][^.]*).*?)\\]", Pattern.DOTALL | Pattern.MULTILINE); This will...
Hi, can we have the option to set the tags as empty if the param is not present in the parammap. Template has ${EmployeeName} but param doesn't contain EmployeeName So...
This PR fixes lost whitespaces in and between scripts. A space is lost if the replacement results in an element with leading or trailing spaces: `one two ` instead of...
With this template engine, the library can process docx with many more scripts Fix #21
I have a very large document (more than 200 forms). The first forms worked without problems. Currently I started to give the following error **Method code too large!** **Stack:** groovy.lang.GroovyRuntimeException:...
Hi snowindy ! Congratulation for your great template engine. I have however some problems when i want to format fields in italic or exponant. See my template sample above and...
Related to issue #15 if property is complex(${person.name} or ${person?.name}), nullreplacement doesn't work, also it doesn't work for tables ($[@person.name] or $[@person?.name]). In both situatioans if no property in top...