~ubuntu-branches/ubuntu/lucid/anki/lucid-updates

« back to all changes in this revision

Viewing changes to libanki/anki/importing/mnemosyne10.py

  • Committer: Bazaar Package Importer
  • Author(s): Mackenzie Morgan
  • Date: 2010-05-31 15:55:50 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100531155550-wj3tag8bvp6fwhpo
Tags: 0.9.9.8.6-2~lucid1
Backport from maverick to fix FTBFS (LP: #550145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    def fudgeText(self, text):
73
73
        text = text.replace("\n", "<br>")
74
74
        text = re.sub('<sound src="(.*?)">', '[sound:\\1]', text)
 
75
        text = re.sub('<(/?latex)>', '[\\1]', text)
 
76
        text = re.sub('<(/?\$)>', '[\\1]', text)
 
77
        text = re.sub('<(/?\$\$)>', '[\\1]', text)
75
78
        return text