Skip to content

Commit

Permalink
Fix output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Sep 25, 2024
1 parent e1ba4db commit 5cac177
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qt/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,10 @@ void MainWindow::search()
statusBar()->showMessage(info.c_str());
collect_info = ""; // reset communication buffer
searchTokenset(moduleName, pattern, length, true); // Start search...

boost::trim(collect_info);
boost::replace_all(collect_info, "\n", "<br>");

passageInfos->append(
("<b>Search " + moduleName + " " + rest + "</b>" + "<br>" + collect_info).c_str());
moveCursorEnd(passageInfos);
Expand Down

0 comments on commit 5cac177

Please sign in to comment.