Merge pull request #13232 from josephalbaph/patch-13
fix: DeprecationWarning: invalid escape sequence \(
This commit is contained in:
commit
0a4ab37ca1
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ def get_print_style(style=None, print_format=None, for_legacy=False):
|
|||
css = css + '\n' + frappe.db.get_value('Print Style', style, 'css')
|
||||
|
||||
# move @import to top
|
||||
for at_import in list(set(re.findall("(@import url\([^\)]+\)[;]?)", css))):
|
||||
for at_import in list(set(re.findall(r"(@import url\([^\)]+\)[;]?)", css))):
|
||||
css = css.replace(at_import, "")
|
||||
|
||||
# prepend css with at_import
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue