Commit 510a29d8 authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Laurent Aimar
Browse files

Fix bug in HTML construction that resulted in malformed HTML (CC)

Address a case where we would end up with missing closing underline tags.  This
results in malformed HTML causing the subpicture to never be rendered in those
cases.
parent ff6dbc7f
......@@ -974,7 +974,7 @@ static void Eia608TextLine( struct eia608_screen *screen, char *psz_text, int i_
/* Be sure to create valid html */
b_close_italics |= b_last_italics && b_close_color;
b_close_underline = b_last_underline && ( b_close_italics || b_close_color );
b_close_underline |= b_last_underline && ( b_close_italics || b_close_color );
if( b_close_underline )
CAT( "</u>" );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment