@@ -46,7 +46,7 @@ def _generate_base_html(
4646 app_initialization : str ,
4747 ) -> str :
4848 """Generate the base HTML template with all components."""
49- return f''' <!DOCTYPE html>
49+ return f""" <!DOCTYPE html>
5050<html lang="en">
5151<head>
5252 <meta charset="UTF-8">
@@ -176,11 +176,11 @@ def _generate_base_html(
176176 { app_initialization }
177177 </script>
178178</body>
179- </html>'''
179+ </html>"""
180180
181181 def _generate_mesh_propagator_js (self , mesh_config_js : str ) -> str :
182182 """Generate the mesh propagator JavaScript class."""
183- return f''' class MeshPropagator {{
183+ return f""" class MeshPropagator {{
184184 constructor(mesh, functions, reverseMesh) {{
185185 this.mesh = mesh;
186186 this.functions = functions;
@@ -250,7 +250,7 @@ def _generate_mesh_propagator_js(self, mesh_config_js: str) -> str:
250250 meshConfig.mesh,
251251 meshFunctions,
252252 meshConfig.reverseMesh
253- );'''
253+ );"""
254254
255255 def _generate_app_initialization (self , config : Dict [str , Any ]) -> str :
256256 """Generate the main app initialization JavaScript."""
@@ -260,7 +260,7 @@ def _generate_app_initialization(self, config: Dict[str, Any]) -> str:
260260 "formData" : config ["initial_values" ],
261261 }
262262
263- return f''' // Initialize form with fallback support
263+ return f""" // Initialize form with fallback support
264264console.log("Starting app initialization...");
265265
266266// Check if all dependencies are loaded
@@ -407,4 +407,4 @@ def _generate_app_initialization(self, config: Dict[str, Any]) -> str:
407407 console.error("Error in app initialization:", error);
408408 document.getElementById('rjsf-form').innerHTML =
409409 '<div class="alert alert-danger">App initialization failed: ' + error.message + '</div>';
410- }}'''
410+ }}"""
0 commit comments