~ubuntu-branches/ubuntu/raring/mnemosyne/raring

« back to all changes in this revision

Viewing changes to mnemosyne/libmnemosyne/card_types/sentence.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-04-18 20:43:08 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130418204308-tiwzzs0n1n79qhyt
Tags: 2.2.1-0ubuntu1
New upstream bugfix release (LP: #1169634)

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
            question, answer = self._q_a_from_cloze\
69
69
                (card.fact["f"], card.extra_data["index"])
70
70
            # Entire sentence clozed.
71
 
            if question == "[...]" and "m_1" in data:
 
71
            if question.strip() == "[...]" and "m_1" in data:
72
72
                question = data["m_1"]
73
73
                data["m_1"] = ""
74
74
        data["f"] = question