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

Text style tags not always properly stripped from template elements #16

Closed
DieterBuysAI opened this issue Apr 28, 2015 · 4 comments
Closed

Comments

@DieterBuysAI
Copy link

In particular, secretary has difficulty parsing statements such as {% if [1, 2, 3]|length > 0 %}Foo Bar{% endif %} because OpenOffice likes to insert text styling tags around the square brackets. Small tweak to the _unescape_entities method can fix this.

@christopher-ramirez
Copy link
Owner

What specifically styling tags is OpenOffice inserting around square brackets? I could not reproduce this issue on Libreoffice. The sample statement is stored as {% if [1, 2, 3]|length > 0 %}Foo Bar{% endif %} (just replacing greater-than symbol with > as expected.

@DieterBuysAI
Copy link
Author

Actually I was using LibreOffice too. I don't have the template data handy now but whenever I wrote [ or ] then LibreOffice Writer would insert <text:span> tags around it. In general any styling tags inside the {% ... %} or {{ ... }} should be ignored, no?

christopher-ramirez added a commit that referenced this issue Apr 29, 2015
@christopher-ramirez
Copy link
Owner

Thank for your contribution and help. I've uploaded a new version fixing issues #14 and #16.

@DieterBuysAI
Copy link
Author

Pleased to be of service @christopher-ramirez

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