version 0.1.6

This commit is contained in:
Eric Lapouyade 2015-07-17 09:56:34 +02:00
parent fcb7e9b960
commit 8f472222d7
6 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
0.1.6 (2015-05-11)
------------------
- remove debug code
- add lxml dependency
0.1.5 (2015-05-11)
------------------
- fix template filter with quote

View File

@ -5,7 +5,7 @@ Created : 2015-03-12
@author: Eric Lapouyade
'''
__version__ = '0.1.5'
__version__ = '0.1.6'
from lxml import etree
from docx import Document
@ -53,7 +53,7 @@ class DocxTemplate(object):
# This is mandatory to have jinja2 generating correct xml code
pat = r'<w:%(y)s[ >](?:(?!<w:%(y)s[ >]).)*({%%|{{)%(y)s ([^}%%]*(?:%%}|}})).*?</w:%(y)s>' % {'y':y}
src_xml = re.sub(pat, r'\1 \2',src_xml,flags=re.DOTALL)
src_xml = src_xml.replace(r"&#8216;","'")
return src_xml

View File

@ -24,7 +24,7 @@ News
""" % read('README', 'CHANGES')
setup(name='docxtpl',
version='0.1.5',
version='0.1.6',
description='Python docx template engine',
long_description=long_description,
classifiers=[
@ -39,6 +39,6 @@ setup(name='docxtpl',
author_email='elapouya@gmail.com',
license='LGPL 2.1',
packages=['docxtpl'],
install_requires = ['Sphinx<1.3b', 'sphinxcontrib-napoleon', 'python-docx','jinja2'],
install_requires = ['Sphinx<1.3b', 'sphinxcontrib-napoleon', 'python-docx','jinja2', 'lxml'],
eager_resources = ['docs'],
zip_safe=False)

Binary file not shown.

Binary file not shown.

Binary file not shown.