Skip to content

Commit

Permalink
info: don't escape html tags in lyrics
Browse files Browse the repository at this point in the history
Do not escape tags in lyrics as '<b>foo</b>' in lyrics looks much better
than '&lt;b&gt;foo&lt;/b&gt;'.
  • Loading branch information
Kirill Lashuk committed Sep 12, 2010
1 parent d797a13 commit ad1786c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sonata/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,7 @@ def _show_lyrics(self, artist_then, title_then, lyrics=None, error=None):
if error:
self.lyricsText.get_buffer().set_text(error)
elif lyrics:
try:
self.lyricsText.get_buffer().set_text(misc.escape_html(
lyrics))
except: ### XXX why would this happen?
self.lyricsText.get_buffer().set_text(lyrics)
self.lyricsText.get_buffer().set_text(lyrics)
else:
self.lyricsText.get_buffer().set_text("")

Expand Down

0 comments on commit ad1786c

Please sign in to comment.