* to be carrying style information. Over time people have used them that way.
* In the absence of specifications from which to work, the tags supported
* have been restricted to the simple set permitted by the USF DTD, ie. :
- * Basic: <br>, <i>, <b>, <u>
+ * Basic: <br>, <i>, <b>, <u>, <s>
* Extended: <font>
* Attributes: face
* family
HtmlCopy( &psz_html, &psz_subtitle, "<u>" );
strcat( psz_tag, "u" );
}
+ else if( !strncasecmp( psz_subtitle, "<s>", 3 ) )
+ {
+ HtmlCopy( &psz_html, &psz_subtitle, "<s>" );
+ strcat( psz_tag, "s" );
+ }
else if( !strncasecmp( psz_subtitle, "<font ", 6 ))
{
const char *psz_attribs[] = { "face=", "family=", "size=",
b_match = !strncasecmp( psz_subtitle, "</u>", 4 );
i_len = 4;
break;
+ case 's':
+ b_match = !strncasecmp( psz_subtitle, "</s>", 4 );
+ i_len = 4;
+ break;
case 'f':
b_match = !strncasecmp( psz_subtitle, "</font>", 7 );
i_len = 7;
/* Hide {\stupidity} */
psz_subtitle = strchr( psz_subtitle, '}' ) + 1;
}
+ else if( psz_subtitle[0] == '{' && psz_subtitle[1] == 'Y'
+ && psz_subtitle[2] == ':' && strchr( 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;
case 'u':
HtmlPut( &psz_html, "</u>" );
break;
+ case 's':
+ HtmlPut( &psz_html, "</s>" );
+ break;
case 'f':
HtmlPut( &psz_html, "/font>" );
break;