Commit d7239098 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Subtitles: font attributes can use ''

Ref #6720
(cherry picked from commit afdbf36588d83320059d400c9a7cf674a15ac257)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent dd205d09
......@@ -679,6 +679,11 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
psz_subtitle++;
i_len = strcspn( psz_subtitle, "\"" );
}
else if( *psz_subtitle == '\'' )
{
psz_subtitle++;
i_len = strcspn( psz_subtitle, "'" );
}
else
{
i_len = strcspn( psz_subtitle, " \t>" );
......@@ -688,7 +693,7 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
HtmlPut( &psz_html, "\"" );
psz_subtitle += i_len;
if( *psz_subtitle == '\"' )
if( *psz_subtitle == '\"' || *psz_subtitle == '\'' )
psz_subtitle++;
break;
}
......
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