Constantin1489/trrc

ankiadderall doesn't interpret in a string `\t` as a tab.

Closed this issue · 0 comments

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

  1. do not create a card.
  2. do not break a program.
  3. advise there is no tab.