diff --git a/src/latex-make.dtx b/src/latex-make.dtx
index 64657bf9fbeff47e4423e196f0b63e66967a0c57..f5d890c4b22423e821284a55da2505c144e7f2be 100644
--- a/src/latex-make.dtx
+++ b/src/latex-make.dtx
@@ -1747,11 +1747,11 @@ def main():
             continue
         if line[0] in "\t ":
             if display:
-                print(line)
+                print(line, end='')
         else:
             Fld = line.split(' ', 9999)
             if not Fld[0] or Fld[0] not in ('1', '2', '3', '4', '5'):
-                print(comment+line)
+                print(comment+line, end='')
                 display = True
             elif Fld[0] == '4':
                 display = show(Fld[3], line)