From: Eric S. Raymond Date: Fri, 7 Nov 2014 16:30:00 +0000 (-0500) Subject: Comments should always end with newline. X-Git-Tag: 0.2~51 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=478fdf78f778b39e0f7677ac8290ec09ada3b698;p=src.git Comments should always end with newline. --- diff --git a/src b/src index 380cfcb..204b861 100755 --- a/src +++ b/src @@ -400,6 +400,8 @@ def commit_method(*args): commentfile = "/tmp/src%dtmp" % os.getpid() do_or_die(editor + " " + commentfile, loud=True) comment = open(commentfile).read() + if not comment.endswith("\n"): + comment += "\n" comment = "." + comment.replace("\n", "\n.")[:-1] comment = comment.replace("'", r"\'") with lifted(arg):