mercurial/changelog.py
changeset 32153 6f173560c7f4
parent 31642 addc392cc3d3
child 32262 85ef5a073114
--- a/mercurial/changelog.py	Sat Apr 08 11:02:37 2017 +0530
+++ b/mercurial/changelog.py	Fri May 05 01:26:13 2017 +0530
@@ -190,7 +190,7 @@
 
         # The list of files may be empty. Which means nl3 is the first of the
         # double newline that precedes the description.
-        if text[nl3 + 1] == '\n':
+        if text[nl3 + 1:nl3 + 2] == '\n':
             doublenl = nl3
         else:
             doublenl = text.index('\n\n', nl3 + 1)