GithubHelp home page GithubHelp logo

some spaces in docx is removed about leanify HOT 16 CLOSED

jayxon avatar jayxon commented on May 14, 2024
some spaces in docx is removed

from leanify.

Comments (16)

javiergutierrezchamorro avatar javiergutierrezchamorro commented on May 14, 2024 3

@TPS it is already updated in the repository as r440: https://sourceforge.net/p/nikkhokkho/code/440/

from leanify.

JayXon avatar JayXon commented on May 14, 2024 1

The switch to pugixml is complete. Could you guys try out the latest nightly? Thanks.

from leanify.

TPS avatar TPS commented on May 14, 2024 1

Thanks, @JayXon & @javiergutierrezchamorro.

from leanify.

javiergutierrezchamorro avatar javiergutierrezchamorro commented on May 14, 2024

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.

contra-tiempo avatar contra-tiempo commented on May 14, 2024

This situation often occures in the graph or sheet captions.

from leanify.

contra-tiempo avatar contra-tiempo commented on May 14, 2024

Is this bug fixed now? The offcial says RapidXml has a better performance.

from leanify.

JayXon avatar JayXon commented on May 14, 2024

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.

TPS avatar TPS commented on May 14, 2024

Known issue filed @ leethomason/tinyxml2#242. Maybe chime in there? Author seems unwilling needs help/patch to fix.

from leanify.

JayXon avatar JayXon commented on May 14, 2024

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.

javiergutierrezchamorro avatar javiergutierrezchamorro commented on May 14, 2024

Being it faster is a good deal for nowadays large XML files.

from leanify.

TPS avatar TPS commented on May 14, 2024

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.

JayXon avatar JayXon commented on May 14, 2024

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.

TPS avatar TPS commented on May 14, 2024

I figured that's how you'd want to go.… Looking forward to it! ☺

from leanify.

TPS avatar TPS commented on May 14, 2024

I use it via FileOptimizer, so, how about it, @javiergutierrezchamorro?

from leanify.

JayXon avatar JayXon commented on May 14, 2024

Closing this, feel free to reopen this or create a new issue if you found any problem.

from leanify.

TPS avatar TPS commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.