This commit is contained in:
Love 2025-01-24 12:57:49 +01:00
parent f4eeb3d0e1
commit 8710c31c1f

View File

@ -50,7 +50,7 @@ void italize_numbers(std::string &content, size_t leave_chars = 0) {
void pretty_format_page(std::string &content) {
content.insert(0, ansi::BOLD);
size_t line_end = content.find("\n");
size_t line_end = content.find('\n');
if (line_end == std::string::npos)
line_end = content.size();
content.insert(line_end, ansi::CLEAR);