Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: stardict format's description HTML display (.ifo file) #1966

Merged

Conversation

shenlebantongying
Copy link
Collaborator

amend #398

Comment on lines 1117 to +1118
QString desc = QString::fromUtf8( ifo.description.c_str() );
desc.replace( "\t", "<br/>" );
desc.replace( "\\n", "<br/>" );
desc.replace( "<br>", "<br/>", Qt::CaseInsensitive );
dictionaryDescription += Html::unescape( desc, Html::HtmlOption::Keep );
dictionaryDescription += desc;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 3 replace from the original GD looks wrong BTW,

@shenlebantongying shenlebantongying changed the title fix: stardict format's description HTML display fix: stardict format's description HTML display (.ifo file) Nov 20, 2024
@shenlebantongying shenlebantongying enabled auto-merge (squash) November 20, 2024 02:26
@shenlebantongying shenlebantongying merged commit c892083 into xiaoyifang:staged Nov 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant