Commit 5fd8aa30 authored by Laurent Aimar's avatar Laurent Aimar

Added support for \N \n and \h in subtitles.

parent 79399150
......@@ -955,6 +955,25 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
/* Hide {Y:stupidity} */
psz_subtitle = strchr( psz_subtitle, '}' ) + 1;
}
else if( psz_subtitle[0] == '\\' && psz_subtitle[1] )
{
if( psz_subtitle[1] == 'N' || psz_subtitle[1] == 'n' )
{
HtmlPut( &psz_html, "<br/>" );
psz_subtitle += 2;
}
else if( psz_subtitle[1] == 'h' )
{
/* Non breakable space */
HtmlPut( &psz_html, NO_BREAKING_SPACE );
psz_subtitle += 2;
}
else
{
HtmlPut( &psz_html, "\\" );
psz_subtitle++;
}
}
else
{
*psz_html = *psz_subtitle;
......
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