Giter Club home page Giter Club logo

Comments (5)

nickfrandsen avatar nickfrandsen commented on August 29, 2024

Hi. Yes that's true. I will add support for these in the next few days (or feel free to send me a pull request). In the meantime a workaround for you might be to replace the tags with a span using js before you send the markup off to the gem.

from htmltoword.

morphil avatar morphil commented on August 29, 2024

thanks!
I tried where is used in HTML usual, but it doesnt seem to make change. Moreover, i have a line that is : text txt, other-texttxt
and in openoffice it renders a linebreak after each ',' sign. any idea why?

from htmltoword.

morphil avatar morphil commented on August 29, 2024

funny :-)
i pasted [span style='position:relative;bottom:0.5em;font-size:0.8em;] tag and it works fine in the github comment.

from htmltoword.

nickfrandsen avatar nickfrandsen commented on August 29, 2024

There are some peculiarities due to MS Word failing if the resulting wordml contains nested block elements (defined by me as w:p's).

If the html you sent me above is wrapped in a p or a div then it should work fine. If you cant get it to work then you could post a question on stack overflow with slightly more info (larger html sample) and link to it here. Then other people with the same problem will be able to find the solution more easily.

from htmltoword.

nickfrandsen avatar nickfrandsen commented on August 29, 2024

Hi morphil I have taken a look at the xslt and done a quick test and it seems that both small and sub should indeed be included in the output. They are covered by the fallback template match="*" so if you have text inside them they will get processed by the rules according to the text() template.

It would be nice if sub/small actually emulated their default browser behaviour rather that just output the text in standard formatting. However I think I will leave that on the nice-to-have list until I have implemented a more solid test suite and can be sure that the new changes don't break existing functionality.

Hope you have managed to solve your problem. I am going to close this ticket, but if you are still stuck feel free to open a stack overflow question and link to it here then I'll see if I can help you out.

from htmltoword.

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.