ankiadderall doesn't interpret in a string `\t` as a tab.
Closed this issue · 0 comments
Constantin1489 commented
Describe the bug
ankiadderall doesn't interpret in a string \t
as a tab.
To Reproduce
./addstring.py 'love\tlove\t'
Traceback (most recent call last):
File "/Users/constantinhong/TODO/ankiadderall/./addstring.py", line 82, in <module>
a = ankiadderall.card(DECK, TYPE, i)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/constantinhong/TODO/ankiadderall/ankiadderall.py", line 24, in __init__
self.content, self.tag = self.make_card(self.deck, self.notetype, self.card_list)
^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot unpack non-iterable NoneType object
Note
python interprets this string with escape.
Expected behavior
- do not create a card.
- do not break a program.
- advise there is no tab.