Skip to content

Commit 9daf784

Browse files
committed
splitlines failed
1 parent c94f869 commit 9daf784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pylhe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def _fromcontext(
647647
err = "<event> block has no text."
648648
raise ValueError(err)
649649

650-
data = element.text.splitlines()
650+
data = element.text.strip().split("\n")
651651
eventdata_str, particles_str = data[0], data[1:]
652652
particles_str = [p.strip() for p in particles_str]
653653

0 commit comments

Comments
 (0)