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

Spacing gets lost #16

Open
c0nnex opened this issue Oct 22, 2015 · 3 comments
Open

Spacing gets lost #16

c0nnex opened this issue Oct 22, 2015 · 3 comments

Comments

@c0nnex
Copy link

c0nnex commented Oct 22, 2015

Trying to import a ODT file created with MS Word a lot of spacing gets lost.
E.g.:

<text:p text:style-name="Standard">
                <text:span text:style-name="T236">Unpacking the downloaded</text:span>
                <text:span text:style-name="T237">
                    <text:s/>installation file<text:s/>
                </text:span>
                <text:span text:style-name="T238">"</text:span>
                <text:span text:style-name="T239">SPAD.neXt.setup.zip</text:span>
                <text:span text:style-name="T240">"</text:span>
                <text:span text:style-name="T241">
                    <text:s/>
                </text:span>
                <text:span text:style-name="T242">provides</text:span>
                <text:span text:style-name="T243">
                    <text:s/>a</text:span>
                <text:span text:style-name="T244">
                    <text:s/>setup wizard</text:span>
                <text:span text:style-name="T245">
                    <text:s/>
                </text:span>
</text:p>

becomes

Unpacking the downloadedinstallation file“SPAD.neXt.setup.zip”providesasetup wizard 

Any idea how to fix this?

@c0nnex
Copy link
Author

c0nnex commented Oct 22, 2015

Best problems are those you solve yourself ;)

Fixed it by adding

<xsl:template match="//text:s">
<xsl:text disable-output-escaping="yes"> </xsl:text>
</xsl:template>

to the xsl

@c0nnex c0nnex closed this as completed Oct 22, 2015
@andyboeh
Copy link

IMHO this shouldn't be closed but the relevant lines added by default to the xsl. I'm facing the same problem and I'm very glad that I found this issue!

@garlik-gag garlik-gag reopened this Oct 23, 2015
garlik-gag added a commit that referenced this issue Oct 23, 2015
@c0nnex
Copy link
Author

c0nnex commented Oct 23, 2015

Working on some more XSL improvements for e.g. insertion for specific formats

@garlik-gag garlik-gag assigned garlik-gag and unassigned garlik-gag Oct 24, 2015
garlik-gag added a commit that referenced this issue Nov 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants