Comments (5)
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.
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.
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.
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.
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)
- Images support HOT 3
- Link support
- Request: debug mode HOT 1
- Line breaks are not converted HOT 3
- Setting fonts and sizes HOT 2
- Ability to set line spacing HOT 2
- NameError: uninitialized constant Zip::File HOT 1
- undefined method `gsub' for nil:NilClass HOT 1
- Support for Ruby 2.1.2 HOT 2
- uninitialized constant ActionController::Responder HOT 14
- missing default template/xslt files in the gem install HOT 3
- White space being added before and after element HOT 2
- compilation error: element html xsltParseStylesheetProcess : document is not a stylesheet HOT 1
- Error while starting rails server after adding htmltoword gem HOT 1
- Still maintained? HOT 5
- Why it doesn't retain font colors?
- Images
- Setup CI for automated tests
- Centering things HOT 1
- uninitialized constant Mime::DOCX HOT 4
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 htmltoword.