From f4bf4578c0e2b11a48bf71be3c81175c17fe8079 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 9 Mar 2015 12:47:01 +0100 Subject: [PATCH] changelog.py: Convert Windows new-lines to UNIX new-lines --- changelog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.py b/changelog.py index 100acebbb..2ee426e3b 100755 --- a/changelog.py +++ b/changelog.py @@ -18,7 +18,7 @@ # * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * # ******************************************************************************/ -import urllib2, json, sys +import urllib2, json, sys, string if len(sys.argv) < 2: print "Usage:", sys.argv[0], "" @@ -47,6 +47,8 @@ for field in version["custom_fields"]: changes = field["value"] break +changes = string.join(string.split(changes, "\r\n"), "\n") + print "### What's New in Version %s" % (version_name) print "" print "#### Changes"