Comments (16)
@TPS it is already updated in the repository as r440: https://sourceforge.net/p/nikkhokkho/code/440/
from leanify.
The switch to pugixml is complete. Could you guys try out the latest nightly? Thanks.
from leanify.
Thanks, @JayXon & @javiergutierrezchamorro.
from leanify.
Have not found yet any document that experiences the removal of spaces. Not sure if this is a highly probable issue or not.
from leanify.
This situation often occures in the graph or sheet captions.
from leanify.
Is this bug fixed now? The offcial says RapidXml has a better performance.
from leanify.
There is a workaround to skip a xml inside docx, so it should be safe to use leanify on docx now.
But I'm not sure if this issue happens to xlsx and pptx.
Rapidxml looks like a dead project, haven't updated for 5 years.
from leanify.
Known issue filed @ leethomason/tinyxml2#242. Maybe chime in there? Author seems unwilling needs help/patch to fix.
from leanify.
I'm considering switching to pugixml
, although it does not support xml:space="preserve"
, it has parse_ws_pcdata_single
flag which will preserve white space in this case. It's also much faster than Tinyxml2
yet still lightweight.
from leanify.
Being it faster is a good deal for nowadays large XML files.
from leanify.
I figured bringing it up directly @ zeux/pugixml#74 would probably be helpful.… ☺
Update: Heh, @zeux seems to have accepted zeux/pugixml#74 as enhancement.… Stay tuned! ☺
Last update from zeux/pugixml#74: Oh, well, denied (for perhaps good reasons — read the long update in linked issue).
How do you all plan to proceed?
from leanify.
I can always stick to the original plan of using parse_ws_pcdata_single
even if pugixml
doesn't support xml:space="preserve"
. It will keep unnecessary whitespace in some cases, but it's better than corrupt the file.
@zeux also mentioned that I should be able to remove the unnecessary whitespace in Leanify by using "some advanced client code".
from leanify.
I figured that's how you'd want to go.… Looking forward to it! ☺
from leanify.
I use it via FileOptimizer, so, how about it, @javiergutierrezchamorro?
from leanify.
Closing this, feel free to reopen this or create a new issue if you found any problem.
from leanify.
Sorry to necropost, but has PugiXML (or current XML parser/optimizer) done everything needed for this? Just FYI, TinyXML just got this implemented @ leethomason/tinyxml2#941.
from leanify.
Related Issues (20)
- wasm support
- Recursive compression of images within epub files HOT 3
- How can I restrict specific files or file types from being optimized? HOT 2
- Please release a new version. HOT 5
- LossLess JPEG optimization? HOT 2
- fatal error: 'stdio.h' file not found HOT 1
- Building from source fails HOT 5
- `Map file error: No such device` using mergerFS HOT 2
- [Bug Report]heap-buffer-overflow in function LeanifyFile():leanify.cpp:140 HOT 3
- Add SECURITY.md HOT 5
- [Bug]out-of-memory in function get_mutable_buffer():/pugixml.cpp:2051
- pixel per inch HOT 2
- make error: lib/LZMA/LzmaEnc.c:2996:19: error: storing the address of local variable ‘outStream’ in ‘p_16->rc.outStream’ [-Werror=dangling-pointer=] HOT 1
- Cflags issue on Apple M1 (ARM) HOT 3
- Out of memory error when compiling HOT 10
- [NOISSUE] Was there previously a GUI version called Leanify++? HOT 1
- Is arm64 / aarch64 architecture supported? HOT 1
- Is there a way that to both keep Photo's EXIF and remove Location? HOT 2
- Need periodic releases so that this excellent tool can be picked up by linux/arch repos. HOT 1
- Bump version
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 leanify.