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

May provide corrupted document #22

Open
vushe opened this issue Dec 5, 2017 · 2 comments
Open

May provide corrupted document #22

vushe opened this issue Dec 5, 2017 · 2 comments

Comments

@vushe
Copy link

vushe commented Dec 5, 2017

When coding Django's tags via LibreOffice window, we are practically unable to control the way LibreOffice stores them in its messy zipped od* archive. One may happen that Django's tags are messed up with xml tags as shown below:

    <text:p text:style-name="P21">Lorem ipsum {{
        <text:span text:style-name="T12">element.el0 }</text:span>}
        <text:span text:style-name="T12">and {{ element.el1 }} and {{ element.el2 }} and </text:span>{{
        <text:span text:style-name="T12">element.eln }</text:span>}
    </text:p>

So templated-docs unzips template and Django replaces its tags with data. But how it works with markup like this }</text:span>}? Obviously, source xml will be broken and, furthermore, od* corrupted.

Maybe here is the explanation of the issue #8

I don't know if there's any way to fix the issue except programming source xml.

@vushe vushe closed this as completed Mar 21, 2018
@vushe vushe reopened this Aug 28, 2018
@danilogbotelho
Copy link

Perhaps use odf's fields as in this project: https://github.com/jakogut/python-relatorio

@vushe
Copy link
Author

vushe commented Sep 4, 2018

Thanks for comment @danilogbotelho. Issue persists with ODF fields too. And actually I see no reason why it should not. As document is getting more complicated, sooner or later you will unfortunately face the issue.

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

2 participants