christopher-ramirez / secretary

Take the power of Jinja2 templates to OpenOffice and LibreOffice.
Other
190 stars 48 forks source link

Multiple Line Breaks #8

Closed svenpetersen closed 10 years ago

svenpetersen commented 10 years ago

Hello,

at first ... thanks for secretary!

It's easiest if I explain my problem with an example: For testing I put some \n in the secretary.py you provided: {'country': 'United\nStat\nes', 'capital': 'Was\nhington', 'cities': ['miami', 'new york', 'california', 'texas', 'atlanta']}, {'country': 'Eng\nland', 'capital': 'London', 'cities': ['gales']},

The result: image If there is more than one \n in one item, the line-breaks are not inserted.

Perhaps you have an idea how to solve it?

Thanks!

with kind regards, Sven

christopher-ramirez commented 10 years ago

Thank for reporting this, Sven.

I've replicated the error and now I'm looking for a solution.