diff --git a/tests/i18n/commands/templates/test.html b/tests/i18n/commands/templates/test.html
index bd77728..3292047 100644
--- a/tests/i18n/commands/templates/test.html
+++ b/tests/i18n/commands/templates/test.html
@@ -94,3 +94,4 @@ continued here.{% endcomment %}
   line breaks, this time
   should be trimmed.
 {% endblocktrans %}
+{% trans "I'm on line 97" %}
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index 8753554..24cbb02 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -131,6 +131,10 @@ class BasicExtractorTests(ExtractorTests):
             self.assertNotMsgId('Text with a few line breaks.', po_contents)
             # should be trimmed
             self.assertMsgId("Again some text with a few line breaks, this time should be trimmed.", po_contents)
+            # should adjust for eaten line numbers
+            self.assertIn(
+                "#: templates/test.html:97\nmsgid \"I'm on line 97\"",
+                po_contents)
 
     def test_force_en_us_locale(self):
         """Value of locale-munging option used by the command is the right one"""
