mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 05:48:54 +00:00
Merge "rest-api-templates/asterisk_processor - replace http line breaks with line feed" into 13
This commit is contained in:
@@ -46,6 +46,8 @@ def wikify(str):
|
|||||||
|
|
||||||
@param str: String to escape
|
@param str: String to escape
|
||||||
"""
|
"""
|
||||||
|
# Replace all line breaks with line feeds
|
||||||
|
str = re.sub(r'<br\s*/?>', '\n', str)
|
||||||
return re.sub(r'([{}\[\]])', r'\\\1', str)
|
return re.sub(r'([{}\[\]])', r'\\\1', str)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user