Commits

Andrey Vlasovskikh committed 9b98eca

Fixed handling Windows-style EOL in templates (#3)

  • Participants
  • Parent commits 414ee76

Comments (0)

Files changed (1)

         offset = 1
         while True:
             line = fd.readline()
-            if re.match(b'^---$', line):
+            if re.match(b'^---\r?\n', line):
                 break
             elif line == b'':
                 return None