Skip to content

Commit

Permalink
Fix line break in some descriptions (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
blitzmann committed May 7, 2016
1 parent caa1061 commit 13a15a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/itemStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def __init__(self, parent, stuff, item):
if not item.description:
return

desc = item.description.replace("\r", "<br>")
desc = item.description.replace("\n", "<br>")
# Strip font tags
desc = re.sub("<( *)font( *)color( *)=(.*?)>(?P<inside>.*?)<( *)/( *)font( *)>", "\g<inside>", desc)
# Strip URLs
Expand Down

0 comments on commit 13a15a3

Please sign in to comment.