Closed hachacha closed 7 months ago
Hi,
@ajrbyers @mauromsl
Wanted to follow up on this. Has this been an issue for any other journals using this plugin?
I have tried the latest version, and updated pandoc to that latest version as well but am still experiencing this extra space on <sup>
elements when converting to html.
Thanks.
Hi @hachacha, can you share the original .docx with us on discord to take a look? We haven't come across this problem on any journal yet
I tried just converting the doc on the command line on the same server and it output okay. I think the issue may be with beautiful soup somehow...
pandoc -s ORIGINAL.docx -t html -o foo.html
i'll send the file over on discord thanks!
closed by birkbeckctp/janeway#4044
Currently running 44d1fdaa75196e4a9472699bae5bf5b933e16c57
This is it after rendered fully, note the spaces and weird underlines
When looking at the html file it appears like this for both
<sup>
and<em>
elements:After removing the new lines from the html galley file directly, the page renders properly with no weird spacing around the sup or emphasis elements.
I tried to debug this to figure out where it's coming from. I checked the output from pandoc because that would make sense since it's these elements specifically giving issue, but don't see anything in stdout:
I tried various ways of printing out from beautiful soup but that also seems about the same.
so I thought it may be from trying to write to the file but changing the newline attribute and replacing these things in the string in views.py still does not help
any help or guidance with this would be greatly appreciated.