Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Cage, Marshall Andrew
arctool
Commits
05f17863
Commit
05f17863
authored
Aug 11, 2016
by
Cage, Marshall Andrew
Browse files
Improve whitespace removal in email dump (bandaid
#1
)
parent
4993fcf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
arctool.py
View file @
05f17863
...
...
@@ -489,6 +489,7 @@ class ARCTool(QMainWindow):
file
.
write
(
data
)
self
.
setIsSaved
(
True
)
self
.
updateTitle
()
self
.
ui
.
statusBar
.
showMessage
(
"Saved Profile as %s"
%
name
)
return
0
def
updateTitle
(
self
):
...
...
packages/Default/emaildump.py
View file @
05f17863
...
...
@@ -480,11 +480,13 @@ class Plugin(arcclasses.Plugin):
text
=
re
.
sub
(
'
\xa0
'
,
' '
,
text
)
text
=
re
.
sub
(
' +'
,
' '
,
text
)
# Collapse Breaks
# Collapse Breaks
/Paragraphs/Spans/Divs
text
=
re
.
sub
(
r
'(?s)<br>\s*(?:</br>)?'
,
'<br/>'
,
text
)
text
=
re
.
sub
(
r
'(?s)(?<=>)\s*<br\s*/?>\s*(?=<)'
,
''
,
text
)
text
=
re
.
sub
(
r
'(?s)\s*<span( [^>]+)?>\s*</span>\s*'
,
''
,
text
)
text
=
re
.
sub
(
r
'(?s)\s*<p( [^>]+)?>\s*</p>\s*'
,
''
,
text
)
text
=
re
.
sub
(
r
'(?s)\s*<span( [^>]+)?>\s*</span>\s*'
,
''
,
text
)
text
=
re
.
sub
(
r
'(?s)\s*<div( [^>]+)?>\s*</div>\s*'
,
''
,
text
)
text
=
re
.
sub
(
r
'(?s)(?<=>)\s*<br\s*/?>\s*(?=<)'
,
''
,
text
)
#bandaid
return
text
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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