mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
changelog.py: Convert Windows new-lines to UNIX new-lines
This commit is contained in:
parent
98b89b1d27
commit
f4bf4578c0
@ -18,7 +18,7 @@
|
|||||||
# * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
# * 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:
|
if len(sys.argv) < 2:
|
||||||
print "Usage:", sys.argv[0], "<VERSION>"
|
print "Usage:", sys.argv[0], "<VERSION>"
|
||||||
@ -47,6 +47,8 @@ for field in version["custom_fields"]:
|
|||||||
changes = field["value"]
|
changes = field["value"]
|
||||||
break
|
break
|
||||||
|
|
||||||
|
changes = string.join(string.split(changes, "\r\n"), "\n")
|
||||||
|
|
||||||
print "### What's New in Version %s" % (version_name)
|
print "### What's New in Version %s" % (version_name)
|
||||||
print ""
|
print ""
|
||||||
print "#### Changes"
|
print "#### Changes"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user