- commit
- cd42ca541d4fae52efb360e0f9a81037e8087b0c
- parent
- 141b581908a884e88e4dd15d00a6034d8d5bbbb7
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-08-28 17:32
format: allow float positions
Diffstat
| M | xipd/format.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/xipd/format.py b/xipd/format.py
@@ -28,7 +28,7 @@ def parse_dot(dot): 28 28 positions = {} 29 29 dot = dot.replace(',\n', ', ') 30 30 for line in dot.splitlines():31 -1 m = re.match(r'\s*([0-9]+).*pos="([0-9]+),([0-9]+)"', line)-1 31 m = re.match(r'\s*([0-9]+).*pos="([0-9.]+),([0-9.]+)"', line) 32 32 if m: 33 33 i = int(m.group(1)) 34 34 x = float(m.group(2))