[FIX]Docx Report Generation : fix return line to space
For better handling of some outside copy/paste.
This commit is contained in:
parent
316437ccfc
commit
3b52c81b27
@ -14,7 +14,7 @@
|
||||
"author": "RYDLAB, Yaltik",
|
||||
"website": "https://rydlab.ru",
|
||||
"category": "Technical",
|
||||
"version": "16.0.2.2.2",
|
||||
"version": "16.0.2.2.3",
|
||||
"license": "LGPL-3",
|
||||
"depends": ["base", "web", "custom_report_field", "report_monetary_helpers"],
|
||||
"external_dependencies": {"python": ["docxcompose", "docxtpl", "beautifulsoup4"]},
|
||||
|
@ -469,8 +469,8 @@ class IrActionsReport(models.Model):
|
||||
html_field = unescape(
|
||||
str(field)
|
||||
.replace('<br>', '')
|
||||
.replace('\t', '')
|
||||
.replace('\n', '')
|
||||
.replace('\t', ' ')
|
||||
.replace('\n', ' ')
|
||||
).replace('&', '\uFF06')
|
||||
xml_tree = etree.fromstring('<root>%s</root>' % html_field)
|
||||
md = tpl.new_subdoc()
|
||||
|
Loading…
x
Reference in New Issue
Block a user