forked from IPKM/nmreval
remove leading space in ascii preview, because some dimwit wants to use spaces in the beginning of his files...
This commit is contained in:
parent
f956c111c2
commit
a1691f11a6
@ -46,7 +46,7 @@ class AsciiReader:
|
||||
num_lines += len(self.header)
|
||||
with self.fname.open('r') as f:
|
||||
for i, line in enumerate(islice(f, len(self.header)+len(self.lines), num_lines)):
|
||||
line = line.rstrip('\n\t\r, ')
|
||||
line = line.strip('\n\t\r, ')
|
||||
line = re.sub(r'[\t ;,] *', ';', line)
|
||||
line = line.split(';')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user