Spaces:
Sleeping
Sleeping
refactor: update docstring for create_svg_viewer_html function to improve clarity
Browse files
app.py
CHANGED
|
@@ -236,7 +236,7 @@ def create_error_html(message: str) -> str:
|
|
| 236 |
|
| 237 |
|
| 238 |
def create_svg_viewer_html(svg_content: str) -> str:
|
| 239 |
-
"""
|
| 240 |
svg = (svg_content or "").strip()
|
| 241 |
if not (svg.startswith("<svg") and svg.endswith("</svg>")):
|
| 242 |
return create_error_html("Invalid SVG format")
|
|
|
|
| 236 |
|
| 237 |
|
| 238 |
def create_svg_viewer_html(svg_content: str) -> str:
|
| 239 |
+
"""DECOMPOSED SVG Rendering in IFRAME with preview"""
|
| 240 |
svg = (svg_content or "").strip()
|
| 241 |
if not (svg.startswith("<svg") and svg.endswith("</svg>")):
|
| 242 |
return create_error_html("Invalid SVG format")
|