소스 검색

diff 버그 수정

Surplus_Up (2DU) 7 년 전
부모
커밋
d7e9ea80eb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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: