Avoid RE replace escape space chars outside of <text:*> nodes.
This commit is contained in:
parent
aa1bc46ab1
commit
574b23f1ef
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ class Renderer(object):
|
|||
encode_rules = {
|
||||
'(?i)(<text:(?:[ahp]|ruby-base|span|meta|meta-field)>.*)(\n)(.*</text:(?:[ahp]|ruby-base|span|meta|meta-field)>)': r'\1<text:line-break/>\3',
|
||||
'(?i)(<text:(?:[ahp]|ruby-base|span|meta|meta-field)>.*)(\u0009)(.*</text:(?:[ahp]|ruby-base|span|meta|meta-field)>)': r'\1<text:tab>\3',
|
||||
'(?i)[\u0009|\u000d|\u000a]': r'<text:s/>'
|
||||
'(?i)[\u0009|\u000d|\u000a](?:(?![</?|>]))': '<text:s/>'
|
||||
}
|
||||
|
||||
for p, r in encode_rules.items():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue