diff --git a/CHANGES.rst b/CHANGES.rst index f1b7582..c566762 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,9 +1,13 @@ +0.5.3 (2018-09-19) +------------------ +- Add sub/superscript in RichText + 0.5.2 (2018-09-13) -------------------- +------------------ - Fix table vertical merge 0.5.0 (2018-08-03) -------------------- +------------------ - An hyperlink can now be used in RichText 0.4.13 (2018-06-21) @@ -19,7 +23,7 @@ - Better tabs and spaces management for MS Word 2016 0.4.10 (2018-05-08) ------------------- +------------------- - Wheel distribution 0.4.9 (2018-05-08) diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py index 87cfc6c..700d913 100644 --- a/docxtpl/__init__.py +++ b/docxtpl/__init__.py @@ -5,7 +5,7 @@ Created : 2015-03-12 @author: Eric Lapouyade ''' -__version__ = '0.5.2' +__version__ = '0.5.3' from lxml import etree from docx import Document diff --git a/tests/richtext.py b/tests/richtext.py index e807eb1..07f8054 100644 --- a/tests/richtext.py +++ b/tests/richtext.py @@ -33,6 +33,10 @@ rt.add('\nFonts :\n',underline=True) rt.add('Arial\n',font='Arial') rt.add('Courier New\n',font='Courier New') rt.add('Times New Roman\n',font='Times New Roman') +rt.add('\n\nHere some') +rt.add('superscript', superscript=True) +rt.add(' and some') +rt.add('subscript', subscript=True) context = { 'example' : rt, diff --git a/tests/test_files/cellbg.docx b/tests/test_files/cellbg.docx index 6957e7a..b880666 100644 Binary files a/tests/test_files/cellbg.docx and b/tests/test_files/cellbg.docx differ diff --git a/tests/test_files/dynamic_table.docx b/tests/test_files/dynamic_table.docx index 64efd60..271ccd2 100644 Binary files a/tests/test_files/dynamic_table.docx and b/tests/test_files/dynamic_table.docx differ diff --git a/tests/test_files/embedded.docx b/tests/test_files/embedded.docx index 0aa7f3f..af2169a 100644 Binary files a/tests/test_files/embedded.docx and b/tests/test_files/embedded.docx differ diff --git a/tests/test_files/embedded_embedded_docx.docx b/tests/test_files/embedded_embedded_docx.docx index 3fed69a..8f7fc35 100644 Binary files a/tests/test_files/embedded_embedded_docx.docx and b/tests/test_files/embedded_embedded_docx.docx differ diff --git a/tests/test_files/escape.docx b/tests/test_files/escape.docx index fee6222..04ad670 100644 Binary files a/tests/test_files/escape.docx and b/tests/test_files/escape.docx differ diff --git a/tests/test_files/header_footer.docx b/tests/test_files/header_footer.docx index 93ff23f..ad7705a 100644 Binary files a/tests/test_files/header_footer.docx and b/tests/test_files/header_footer.docx differ diff --git a/tests/test_files/header_footer_entities.docx b/tests/test_files/header_footer_entities.docx index 6f808a1..c35e3f5 100644 Binary files a/tests/test_files/header_footer_entities.docx and b/tests/test_files/header_footer_entities.docx differ diff --git a/tests/test_files/header_footer_image.docx b/tests/test_files/header_footer_image.docx index 7903fba..3c1bc67 100644 Binary files a/tests/test_files/header_footer_image.docx and b/tests/test_files/header_footer_image.docx differ diff --git a/tests/test_files/header_footer_utf8.docx b/tests/test_files/header_footer_utf8.docx index 02c5e72..cfe8983 100644 Binary files a/tests/test_files/header_footer_utf8.docx and b/tests/test_files/header_footer_utf8.docx differ diff --git a/tests/test_files/inline_image.docx b/tests/test_files/inline_image.docx index 9e45ede..4afbc04 100644 Binary files a/tests/test_files/inline_image.docx and b/tests/test_files/inline_image.docx differ diff --git a/tests/test_files/nested_for.docx b/tests/test_files/nested_for.docx index 7fd42a7..9b5befd 100644 Binary files a/tests/test_files/nested_for.docx and b/tests/test_files/nested_for.docx differ diff --git a/tests/test_files/order.docx b/tests/test_files/order.docx index 3ea729d..026811a 100644 Binary files a/tests/test_files/order.docx and b/tests/test_files/order.docx differ diff --git a/tests/test_files/replace_picture.docx b/tests/test_files/replace_picture.docx index d1eace6..132b850 100644 Binary files a/tests/test_files/replace_picture.docx and b/tests/test_files/replace_picture.docx differ diff --git a/tests/test_files/richtext.docx b/tests/test_files/richtext.docx index 6133c4b..5081d1c 100644 Binary files a/tests/test_files/richtext.docx and b/tests/test_files/richtext.docx differ diff --git a/tests/test_files/richtext_and_if.docx b/tests/test_files/richtext_and_if.docx index 3278606..b39209c 100644 Binary files a/tests/test_files/richtext_and_if.docx and b/tests/test_files/richtext_and_if.docx differ diff --git a/tests/test_files/subdoc.docx b/tests/test_files/subdoc.docx index f0b666f..a9d6f4c 100644 Binary files a/tests/test_files/subdoc.docx and b/tests/test_files/subdoc.docx differ diff --git a/tests/test_files/template_error.docx b/tests/test_files/template_error.docx index 00dcfcb..1af5457 100644 Binary files a/tests/test_files/template_error.docx and b/tests/test_files/template_error.docx differ diff --git a/tests/test_files/vertical_merge.docx b/tests/test_files/vertical_merge.docx index 53aee1c..626d4cd 100644 Binary files a/tests/test_files/vertical_merge.docx and b/tests/test_files/vertical_merge.docx differ diff --git a/tests/test_files/vertical_merge_nested.docx b/tests/test_files/vertical_merge_nested.docx index d5bd141..697859d 100644 Binary files a/tests/test_files/vertical_merge_nested.docx and b/tests/test_files/vertical_merge_nested.docx differ diff --git a/tests/test_files/word2016.docx b/tests/test_files/word2016.docx index f0d4d6b..85192f0 100644 Binary files a/tests/test_files/word2016.docx and b/tests/test_files/word2016.docx differ