-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...":
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:
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?
The text was updated successfully, but these errors were encountered: