diff --git a/docxtpl/__init__.py b/docxtpl/__init__.py index 1df6305..4e49929 100644 --- a/docxtpl/__init__.py +++ b/docxtpl/__init__.py @@ -11,4 +11,3 @@ from .listing import Listing from .richtext import RichText, R from .subdoc import Subdoc from .template import DocxTemplate - diff --git a/docxtpl/inline_image.py b/docxtpl/inline_image.py index c771e95..43af07b 100644 --- a/docxtpl/inline_image.py +++ b/docxtpl/inline_image.py @@ -5,6 +5,7 @@ Created : 2021-07-30 @author: Eric Lapouyade """ + class InlineImage(object): """Class to generate an inline image diff --git a/docxtpl/listing.py b/docxtpl/listing.py index 2f54424..4a7f85c 100644 --- a/docxtpl/listing.py +++ b/docxtpl/listing.py @@ -11,6 +11,7 @@ except ImportError: # cgi.escape is deprecated in python 3.7 from cgi import escape + class Listing(object): r"""class to manage \n and \a without to use RichText, by this way you keep the current template styling diff --git a/docxtpl/richtext.py b/docxtpl/richtext.py index 196da74..f78d6ef 100644 --- a/docxtpl/richtext.py +++ b/docxtpl/richtext.py @@ -11,6 +11,7 @@ except ImportError: # cgi.escape is deprecated in python 3.7 from cgi import escape + class RichText(object): """ class to generate Rich Text when using templates variables