mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add reminder about leading whitespace
This commit is contained in:
parent
ebeef6b2e6
commit
6f88deab52
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue