Giter Site home page Giter Site logo

Comments (4)

peteamundson avatar peteamundson commented on July 26, 2024

I believe this is caused by the code that selects the "IntenseQuote" style. If that style is not found (it appears to be renamed in the newest O365 version of the default Word template - and maybe in others), then there are two start tags added which causes the Header to break. One work around I have found is to rename the "Intense Quote" style in your Word document to "IntenseQuote" and then testing.

from html2openxml.

onizet avatar onizet commented on July 26, 2024

I did some tests and it appears that now, Word lazily instantiate the style IntenseQuote and Heading X.
Thus on an empty document or on a document that are not yet referencing these styles, the style "heading 2" is well applied but refers to an non-existing style.

We first need to ensure the styles exists or push them ourself (like for the Hyperlink or Caption).

from html2openxml.

peteamundson avatar peteamundson commented on July 26, 2024

Even with the lazy loading of the style, the current code, when "IntenseQuote" does not exist, causes both the <w:ind w:left="708" /> and <w:pStyle w:val="IntenseQuote" /> to be added in the ProcessBlockQuote method (using two BeginTag calls). I'm not sure, but does that cause an issue because the EndTag for a blockquote is only called once in the ProcessClosingBlockQuote method?

from html2openxml.

onizet avatar onizet commented on July 26, 2024

Oh yes, you are really right. I resolve the bug in another way but you are raising a real issue and I found that I can see the same bad behavior in the TableColumn. Which surely will fix another issue that was recently raised. Thank you, this is a very nice catch !

from html2openxml.

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.