scriptlet4docx
scriptlet4docx copied to clipboard
TableScriptingRowProcessor to support unicode
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 help in supporting the unicode names for the list. Sample : $[@dgtag_test标签List.blahblah1]
Currently list comes as dgtag_testList