Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
3f0a44d8
Commit
3f0a44d8
authored
Jan 15, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Formulator: Update OOoEscaper for python3 re.sub behavior
parent
09fec26d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/Formulator/Widget.py
product/Formulator/Widget.py
+1
-1
No files found.
product/Formulator/Widget.py
View file @
3f0a44d8
...
...
@@ -72,7 +72,7 @@ class OOoEscaper:
self
.
parent_node
=
parent_node
def
__call__
(
self
,
match_object
):
match_value
=
match_object
.
group
(
1
)
if
match_value
is
None
:
if
match_value
is
None
and
match_object
.
group
(
2
)
:
self
.
parent_node
.
text
=
convert_to_xml_compatible_string
(
match_object
.
group
(
2
))
elif
match_value
==
'
\
n
'
:
line_break
=
SubElement
(
self
.
parent_node
,
'{%s}%s'
%
(
TEXT_URI
,
'line-break'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment