1
0
forked from IPKM/nmreval

fix missing return of comments in asciireader

This commit is contained in:
Dominik Demuth 2023-05-30 17:42:12 +02:00
parent 8d06240205
commit c8287c2dbf

View File

@ -41,7 +41,7 @@ class AsciiReader:
def make_preview(self, num_lines: int): def make_preview(self, num_lines: int):
if num_lines <= len(self.lines): if num_lines <= len(self.lines):
return self.lines[:num_lines], max(self.width[:num_lines]) return self.lines[:num_lines], max(self.width[:num_lines]), self.line_comment
num_lines += len(self.header) num_lines += len(self.header)
with self.fname.open('r') as f: with self.fname.open('r') as f: