chore: Escape backslashes in line strings in widgets generator

This commit is contained in:
Théophile Diot 2024-08-12 08:42:00 +01:00
parent 04a743fa4b
commit 88a14923b7
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -125,6 +125,9 @@ def formatMd():
if line.startswith("#") and ".vue" in line and "\\.vue" in line:
line = line.replace("\\.vue", ".vue")
# Escape the \ character
line = line.replace("\\", "\\\\")
# Case not a param, keep the line as is
if not line.startswith("*"):
line_result.append(line)