Stardict: Add class for "h3" headwords tags

This commit is contained in:
Abs62 2018-03-07 17:01:16 +03:00
parent 69650fff43
commit 6d03661b70

View file

@ -1535,7 +1535,7 @@ void StardictArticleRequest::run()
for( i = mainArticles.begin(); i != mainArticles.end(); ++i )
{
result += dict.isFromLanguageRTL() ? "<h3 dir=\"rtl\">" : "<h3>";
result += dict.isFromLanguageRTL() ? "<h3 class=\"sdct_headwords\" dir=\"rtl\">" : "<h3 class=\"sdct_headwords\">";
result += i->second.first;
result += "</h3>";
if( dict.isToLanguageRTL() )
@ -1548,7 +1548,7 @@ void StardictArticleRequest::run()
for( i = alternateArticles.begin(); i != alternateArticles.end(); ++i )
{
result += dict.isFromLanguageRTL() ? "<h3 dir=\"rtl\">" : "<h3>";
result += dict.isFromLanguageRTL() ? "<h3 class=\"sdct_headwords\" dir=\"rtl\">" : "<h3 class=\"sdct_headwords\">";
result += i->second.first;
result += "</h3>";
if( dict.isToLanguageRTL() )