From 5f5028d244ae813ac37ad5d8929f8f20fa19e475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Schl=C3=B6mer?= Date: Thu, 10 Mar 2022 21:30:51 +0100 Subject: [PATCH] flac3d: allow empty lines --- setup.cfg | 2 +- src/meshio/flac3d/_flac3d.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 681860cf5..6317ea158 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = meshio -version = 5.3.2 +version = 5.3.3 author = Nico Schlömer et al. author_email = nico.schloemer@gmail.com description = I/O for many mesh formats diff --git a/src/meshio/flac3d/_flac3d.py b/src/meshio/flac3d/_flac3d.py index 8fd2454bd..4e660dbc2 100644 --- a/src/meshio/flac3d/_flac3d.py +++ b/src/meshio/flac3d/_flac3d.py @@ -163,6 +163,9 @@ def read_buffer(f, binary): if not line: break + if line.strip() == "": + continue + split = line.rstrip().split() if split[0] == "G":