ソースを参照

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: