From fd197daff7bf998423062bd85dc672f368f2d5ba Mon Sep 17 00:00:00 2001 From: Martin Fleischmann Date: Mon, 22 Apr 2024 20:47:40 +0200 Subject: [PATCH] backwards compat --- xvec/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xvec/index.py b/xvec/index.py index c10c83d..a05b632 100644 --- a/xvec/index.py +++ b/xvec/index.py @@ -286,6 +286,7 @@ def __repr__(self) -> str: if len(wkts) == 1: return f"GeometryIndex([{wkts[0]}], crs={srs})" - return f"GeometryIndex(\n[{wkts[0]}\n {'\n '.join(wkts[1:])}],\ncrs={srs})".replace( + joined = "\n ".join(wkts[1:]) + return f"GeometryIndex(\n[{wkts[0]}\n {joined}],\ncrs={srs})".replace( "\n", "\n" + " " * 4 )