mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
Allow newline in Extra Network activation text (#16428)
This commit is contained in:
@@ -177,10 +177,8 @@ def add_pages_to_demo(app):
|
||||
app.add_api_route("/sd_extra_networks/get-single-card", get_single_card, methods=["GET"])
|
||||
|
||||
|
||||
def quote_js(s):
|
||||
s = s.replace('\\', '\\\\')
|
||||
s = s.replace('"', '\\"')
|
||||
return f'"{s}"'
|
||||
def quote_js(s: str):
|
||||
return json.dumps(s, ensure_ascii=False)
|
||||
|
||||
|
||||
class ExtraNetworksPage:
|
||||
|
Reference in New Issue
Block a user