Skip to content

Commit f6da405

Browse files
committed
Remove the leading '>' from header
1 parent 021a97a commit f6da405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/clib/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ def virtualfile_from_stringio(self, stringio: io.StringIO):
16631663
if line.startswith(">"): # Segment header
16641664
if header is not None: # Only one segment is allowed now.
16651665
raise GMTInvalidInput("Only one segment is allowed.")
1666-
header = line
1666+
header = line.strip(">").lstrip()
16671667
continue
16681668
string_arrays.append(line)
16691669
# Only one table and one segment. No numeric data, so n_columns is 0.

0 commit comments

Comments
 (0)