fixed some issue in NextGenerator
This commit is contained in:
parent
606b5a1d9e
commit
1db499ae38
@ -63,7 +63,7 @@ class NextGenerator(inkex.base.TempDirMixin, inkex.base.InkscapeExtension):
|
|||||||
# spaces around commas will be stripped
|
# spaces around commas will be stripped
|
||||||
csv.register_dialect('generator', 'excel', skipinitialspace=True)
|
csv.register_dialect('generator', 'excel', skipinitialspace=True)
|
||||||
|
|
||||||
with open(self.options.csv_file, newline='', encoding='utf-8') as csvfile:
|
with open(self.options.csv_file, newline='', encoding='utf-8-sig') as csvfile:
|
||||||
|
|
||||||
data = csv.DictReader(csvfile, dialect='generator')
|
data = csv.DictReader(csvfile, dialect='generator')
|
||||||
|
|
||||||
@ -130,7 +130,8 @@ class NextGenerator(inkex.base.TempDirMixin, inkex.base.InkscapeExtension):
|
|||||||
self.debug(cli_output)
|
self.debug(cli_output)
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
return True
|
||||||
|
|
||||||
def load(self, stream):
|
def load(self, stream):
|
||||||
return str(stream.read(), 'utf-8')
|
return str(stream.read(), 'utf-8')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user