Merge branch 'master' of github.com:christopher-ramirez/secretary

This commit is contained in:
Christopher Ramírez 2017-09-01 15:10:34 -06:00
commit 47207c76ca
3 changed files with 4 additions and 1 deletions

View file

@ -159,6 +159,7 @@ Pad zeroes to `value` to the left until output value's length be equal to `lengt
Secretary supports most of the jinja2 control structure/flow tags. But please avoid using the following tags since they are not supported: `block`, `extends`, `macro`, `call`, `include` and `import`.
### Version History
* **0.2.16**: Fix store of mimetype in rendered ODT archive.
* **0.2.15**: Fix bug reported in #39 escaping Line-Feed and Tab chars inside `text:` elements.
* **0.2.14**: Implement dynamic links escaping and fix #33.
* **0.2.13**: Fix reported bug in markdown filter outputing emply lists.

View file

@ -451,6 +451,8 @@ class Renderer(object):
return (
value.replace('\n', Markup('<text:line-break/>'))
.replace('\t', Markup('<text:tab/>'))
.replace('\x0b', '<text:space/>')
.replace('\x0c', '<text:space/>')
)

View file

@ -26,7 +26,7 @@ class PyTest(TestCommand):
setup(
name='secretary',
version='0.2.15',
version='0.2.16',
url='https://github.com/christopher-ramirez/secretary',
license='MIT',
author='Christopher Ramírez',