Skip to content

Commit

Permalink
fix:unclosed tag caused the following dictionaries can not render cor…
Browse files Browse the repository at this point in the history
…rectly

<div/> was deemed as a start div tag ,same as <div>,which cause the following dictionaries can not rendered correctly
  • Loading branch information
xiaoyifang committed Apr 10, 2022
1 parent 30ce781 commit 70b2f8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions article_maker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ std::string ArticleMaker::makeHtmlHeader( QString const & word,
bool expandOptionalParts ) const
{
string result =
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" "
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
"<!DOCTYPE html>"
"<html><head>"
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";

Expand Down
2 changes: 2 additions & 0 deletions mdx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,8 @@ void MdxArticleRequest::run()

if ( !articleText.empty() )
{
articleText+="</div></div></div></div></div></div></div></div></div>";

Mutex::Lock _( dataMutex );
data.insert( data.end(), articleText.begin(), articleText.end() );
hasAnyData = true;
Expand Down

0 comments on commit 70b2f8f

Please sign in to comment.