code styling

This commit is contained in:
Eric Lapouyade 2021-07-31 13:53:44 +02:00
parent f780714a52
commit ab61d39847
4 changed files with 3 additions and 1 deletions

View File

@ -11,4 +11,3 @@ from .listing import Listing
from .richtext import RichText, R from .richtext import RichText, R
from .subdoc import Subdoc from .subdoc import Subdoc
from .template import DocxTemplate from .template import DocxTemplate

View File

@ -5,6 +5,7 @@ Created : 2021-07-30
@author: Eric Lapouyade @author: Eric Lapouyade
""" """
class InlineImage(object): class InlineImage(object):
"""Class to generate an inline image """Class to generate an inline image

View File

@ -11,6 +11,7 @@ except ImportError:
# cgi.escape is deprecated in python 3.7 # cgi.escape is deprecated in python 3.7
from cgi import escape from cgi import escape
class Listing(object): class Listing(object):
r"""class to manage \n and \a without to use RichText, r"""class to manage \n and \a without to use RichText,
by this way you keep the current template styling by this way you keep the current template styling

View File

@ -11,6 +11,7 @@ except ImportError:
# cgi.escape is deprecated in python 3.7 # cgi.escape is deprecated in python 3.7
from cgi import escape from cgi import escape
class RichText(object): class RichText(object):
""" class to generate Rich Text when using templates variables """ class to generate Rich Text when using templates variables