Explorar o código

diff 버그 수정

Surplus_Up (2DU) %!s(int64=7) %!d(string=hai) anos
pai
achega
8a22bd5f85
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      func.py

+ 3 - 0
func.py

@@ -365,6 +365,9 @@ def diff(seqm):
     end = end.replace('\r\n', '\n')
     sub = ''
 
+    if not re.search('\n', end):
+        end += '\n'
+
     num = 0
     left = 1
     while 1: