Icons description separator must start at newline.

Otherwise it will clash with wrong things, like middle-of-line table header
separators.
This commit is contained in:
Bartosz Taudul
2026-06-06 01:24:23 +02:00
parent 9806f35714
commit e5371d7987

View File

@@ -142,8 +142,8 @@ void View::DrawManual()
ImGui::Dummy( ImVec2( 0, ImGui::GetTextLineHeight() * 0.25f ) );
ImGui::PopFont();
const auto separator = chunk.text.find( "-----" );
const auto size = separator == std::string::npos ? chunk.text.size() : separator;
const auto separator = chunk.text.find( "\n-----" );
const auto size = separator == std::string::npos ? chunk.text.size() : ( separator + 1 );
m_markdown.Print( chunk.text.c_str(), size );
}