Skip to content

Commit

Permalink
BUGFIX, subtitle: removing </i><i> in the middle of a segment
Browse files Browse the repository at this point in the history
  • Loading branch information
Liborio Cannici committed Jan 29, 2011
1 parent 08feb32 commit c3d3c68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/gui/esubtitle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c3d3c68

Please sign in to comment.