##// END OF EJS Templates
annotate: calculate line count correctly...
Jun Wu -
r30040:3e3f2201 default
parent child Browse files
Show More
@@ -930,7 +930,7 b' class basefilectx(object):'
930 def lines(text):
930 def lines(text):
931 if text.endswith("\n"):
931 if text.endswith("\n"):
932 return text.count("\n")
932 return text.count("\n")
933 return text.count("\n") + 1
933 return text.count("\n") + int(bool(text))
934
934
935 if linenumber:
935 if linenumber:
936 def decorate(text, rev):
936 def decorate(text, rev):
General Comments 0
You need to be logged in to leave comments. Login now