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

New paragraph with accents #914

Closed
josespinal opened this issue Oct 18, 2016 · 1 comment
Closed

New paragraph with accents #914

josespinal opened this issue Oct 18, 2016 · 1 comment

Comments

@josespinal
Copy link

In a docx file I have some accents as the file is written in spanish. When I try to output it to HTML, here's what I get from the text "La noticia se regó como pólvora...":

image

Doing some digging I found out that it had to do that XML is being handled by the XMLReader as a new run. Here's the XML output from XMLReader:

image

Then the HTML Writer adds paragraph tags to every new text (run?) via the addText() function. I believe that what's happening is that the writer is not taking in account the "xml:space" attribute which is set to "preserve". I was playing around with the AbstractPart of PhpOffice\PhpWord\Reader\Word2007 with no luck.

Any help or ideas on how to solve this?

@LuanHimmlisch
Copy link

@josespinal you should have shared your solution if you close this

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

2 participants