Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces removed #46

Open
GeorgesLeYeti opened this issue Mar 25, 2016 · 3 comments
Open

Spaces removed #46

GeorgesLeYeti opened this issue Mar 25, 2016 · 3 comments

Comments

@GeorgesLeYeti
Copy link

Hi,

I'm having an issue when i try to convert my html.
For example:
<show><test>Hello``</test><test><strong>World</strong>``</test><test>RoR!</test></show>
The HTML is:

Hello World RoR!

There is a space between World and RoR!

But the result in Docx is:

Hello WorldRoR!

Of course strong tag is juste 1 case same isue with , etc...

@GeorgesLeYeti
Copy link
Author

Which is the goal of the line 75 in htmltoword/lib/htmltoword/document.rb

source = Nokogiri::HTML(html.gsub(/>\s+</, '><'))

@Badikov
Copy link

Badikov commented Jul 12, 2016

&nbsp;

@lukelex
Copy link

lukelex commented May 30, 2018

@GeorgesLeYeti is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants