add reminder about leading whitespace

This commit is contained in:
Damien Elmes 2012-01-11 14:47:06 +09:00
parent ebeef6b2e6
commit 6f88deab52

View file

@ -69,6 +69,7 @@ class TextImporter(CardImporter):
self.data = self.fileobj.read() self.data = self.fileobj.read()
if self.data.startswith(codecs.BOM_UTF8): if self.data.startswith(codecs.BOM_UTF8):
self.data = self.data[len(codecs.BOM_UTF8):] self.data = self.data[len(codecs.BOM_UTF8):]
print "fixme: don't strip leading whitespace"
def sub(s): def sub(s):
return re.sub( return re.sub(
"^\#.*", "", re.sub( "^\#.*", "", re.sub(