Commits

Carl Friedrich Bolz  committed ae15bbc

another translation fix

  • Participants
  • Parent commits 1d800a9
  • Branches better-errors

Comments (0)

Files changed (1)

File prolog/interpreter/error.py

         out.append("  File \"%s\" %sin %s:%s" % (
             rule.file_name, lines,
             rule.module.name, rule.signature.string()))
-        if rule.source is not None:
-            out.append("    " + rstring.replace(rule.source, "\n", "\n    "))
+        source = self.source
+        if source is not None:
+            out.append("    " + rstring.replace(source, newline, "\n    "))
         if self.next is not None:
             self.next._format(out)