Comments (7)
In the commit bb0f435, looks like you took care of <, > and ", but looks like quotes are converted to ?. So the replace function may not work correctly. < and > were escaped to <
and >
and the replace method will correctly put them back. Since " is not converted to "
, but ? instead, replace function wont work.
Hope this helps you...just started learning Groovy a day ago...I dont know the correct solution to this :)
from scriptlet4docx.
Thank you for the sharing this. I've got your point about quotes escaping.
Thing is, I don't have MS word at my PC, so it would be helpful if you could attach your docx with example.
from scriptlet4docx.
The document is available at https://www.dropbox.com/s/evb1govic7rwdez/FOL.docx?dl=0
from scriptlet4docx.
Hello!
As I unzip your docx document and go look into document.xml, I can see that:
you used symbol “ (hex code 93) instead of normally used symbol " (hex code 22).
Could you try using the quote symbol I provided for this template and see how it goes?
// Probably I will try to handle your symbol (93) as well, in next release. Is there an apostrophe symbol with different code you may use?
from scriptlet4docx.
Just tried to copy-paste the quotation mark you provided in the expression and it works!
But if I try to type in the quotation mark from my laptop keyboard, it fails. Looks like my keyboard only generates code 93.
Can you please include this symbol also?
from scriptlet4docx.
Yep I figured the symbols out. All of them should be treated as ".
«»“”‘’
from scriptlet4docx.
Fixed in 0.8.0. version will appear in maven central within several days.
from scriptlet4docx.
Related Issues (20)
- Dynamic Images HOT 2
- Cannot use && in conditions HOT 1
- Need ability to render <w:br/> HOT 3
- Gracefully use null replacements in case of missing property in template params HOT 4
- No property in template. HOT 1
- Line Break Characters aren't working correctly HOT 7
- Empty lines in the final document instead of blocks <% %> HOT 3
- Problem with some formatting fields
- Streams HOT 14
- 图片
- Method code too large HOT 2
- Tags which are not part of param should be set as empty after the generation
- TableScriptingRowProcessor to support unicode
- Null placeholder HOT 2
- Table scripting does not work when <w:tr> construction is used within docx source HOT 1
- Table scripting does not work when there is <w:tr* tags inside table cell HOT 1
- Scriptlets don't allow using '>', '<', '"' HOT 1
- Cache cleanup for specific template key. HOT 5
- Scriptlets don´t work in header and Footer HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scriptlet4docx.