MCPcopy
hub / github.com/python-visualization/folium / normalize

Function normalize

folium/utilities.py:365–369  ·  view source on GitHub ↗

Return the input string without non-functional spaces or newlines.

(rendered: str)

Source from the content-addressed store, hash-verified

363
364
365def normalize(rendered: str) -> str:
366 """Return the input string without non-functional spaces or newlines."""
367 out = "".join([line.strip() for line in rendered.splitlines() if line.strip()])
368 out = out.replace(", ", ",")
369 return out
370
371
372@contextmanager

Callers 15

test_circleFunction · 0.90
test_circle_markerFunction · 0.90
test_rectangleFunction · 0.90
test_polygon_markerFunction · 0.90
test_polylineFunction · 0.90
test_mulyipolylineFunction · 0.90
test_image_overlayFunction · 0.90
test_popup_stickyFunction · 0.90
test_popup_showFunction · 0.90
test_includeFunction · 0.90
test_popup_backticksFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_circleFunction · 0.72
test_circle_markerFunction · 0.72
test_rectangleFunction · 0.72
test_polygon_markerFunction · 0.72
test_polylineFunction · 0.72
test_mulyipolylineFunction · 0.72
test_image_overlayFunction · 0.72
test_popup_stickyFunction · 0.72
test_popup_showFunction · 0.72
test_includeFunction · 0.72
test_popup_backticksFunction · 0.72