Permalink
Browse files

BUGFIX, subtitle: removing </i><i> in the middle of a segment

  • Loading branch information...
1 parent 08feb32 commit c3d3c6822748f7074e7a554645ca3ec669daa65c Liborio Cannici committed Jan 29, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/gui/esubtitle.cpp
View
5 lib/gui/esubtitle.cpp
@@ -281,7 +281,10 @@ int eSubtitleWidget::event(int event, void *data, void *data2)
face = Subtitle_Bold;
break;
}
- text = text.substr(3, text.length()-7);
+ text = replace_all(text, "<i>", "");
+ text = replace_all(text, "</i>", "");
+ text = replace_all(text, "<b>", "");
+ text = replace_all(text, "</b>", "");
}
subtitleStyles[face].font->pointSize=fontsize;

0 comments on commit c3d3c68

Please sign in to comment.