wichert / lingua

Translation toolkit for Python
Other
46 stars 33 forks source link

Translation extractor does not strip trailing whitespace off message-ids #1

Closed Ignas closed 13 years ago

Ignas commented 13 years ago
    def test_translate_stripExtraWhitespaceAfterText(self):
        snippet="""\
                <html xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="lingua">
                  <dummy i18n:translate="">
                      Dummy text
                  </dummy>
                </html>
                """
        self.assertEqual(self.extract(snippet),
                [(2, None, u"Dummy text", [])])