diff --git a/QuickWKT.py b/QuickWKT.py index 2667dea..977b237 100644 --- a/QuickWKT.py +++ b/QuickWKT.py @@ -248,6 +248,7 @@ def save_from_text(self, text, layerTitle=None): typeMap = {0: "Point", 1: "LineString", 2: "Polygon"} newFeatures = {} errors = [] + text = re.sub('\n *(?![PLMC])', ' ', text) # Handle multiple lines, each with its own geometry. for i, line in enumerate(text.splitlines()): line = line.strip()