diff --git a/plexpy/versioncheck.py b/plexpy/versioncheck.py
index a2106c4c..30130b96 100644
--- a/plexpy/versioncheck.py
+++ b/plexpy/versioncheck.py
@@ -252,7 +252,7 @@ def read_changelog():
try:
logfile = open(changelog_file, "r")
- except IOError, e:
+ except IOError as e:
logger.error('PlexPy Version Checker :: Unable to open changelog file. %s' % e)
return '
Unable to open changelog file
'
@@ -267,9 +267,15 @@ def read_changelog():
output += '' + line[3:] + '
'
elif line[:2] == '* ' and previous_line.strip() == '':
output += '- ' + line[2:] + '
'
+ elif line[:2] == '* ' and previous_line[:4] == ' * ':
+ output += '
' + line[2:] + ''
elif line[:2] == '* ':
output += '' + line[2:] + ''
- elif line.strip() == '' and previous_line[:2] == '* ':
+ elif line[:4] == ' * ' and previous_line[:2] == '* ':
+ output += '- ' + line[4:] + '
'
+ elif line[:4] == ' * ':
+ output += '- ' + line[4:] + '
'
+ elif line.strip() == '' and (previous_line[:2] == '* ' or previous_line[:4] == ' * '):
output += '
'
else:
output += line + ''