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

styles in {{}} #15

Open
luk156 opened this issue Jul 25, 2013 · 1 comment
Open

styles in {{}} #15

luk156 opened this issue Jul 25, 2013 · 1 comment

Comments

@luk156
Copy link

luk156 commented Jul 25, 2013

If in a variable declaration if there is different style give me an error:

Could not parse the remainder: '/text:span<text:span text:style-name="T10">cale/text:span<text:span text:style-name="T7">' from 'fattura.cliente.cod_fis/text:span<text:span text:style-name="T10">cale/text:span<text:span text:style-name="T7">'

also if i modify an existing .odt replacing only few character i've the same problem becouse libreoffice insert new span
(sorry for my english)

@luk156
Copy link
Author

luk156 commented Jul 25, 2013

i resolve add thi line to

def unescape_templatetags_preprocessor(template_content):

for include_text in re.findall(r'{{(.+?)}}', template_content):
        new_include_text = re.sub(r'<.*?>', '', include_text)
        template_content = template_content.replace(
            '{{%s}}' % include_text, '{{%s}}' % new_include_text
        )

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

1 participant