From 731920b1adbc2b38c2c5b939020a475f35ba7fa1 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 16 Jan 2026 09:26:09 +0100 Subject: [PATCH] Add multi-line WKT support back This is a port of commit 490efdc69b31bd995d89c0f8b3701766d9aaff0f Closes #43 --- QuickWKT.py | 1 + 1 file changed, 1 insertion(+) 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()