Fix bold tag bug

Fixed a bug which caused the append() function on MarkdownParser to add
an extra undesirable byte in between characters inside of bold tags.
This commit is contained in:
luca0N! 2022-03-22 17:57:19 -03:00
parent 1cc18e0b2a
commit 00d22de1a2
Signed by: luca0N
GPG Key ID: 2E7B4655CF16D7D6
1 changed files with 5 additions and 3 deletions

View File

@ -53,8 +53,10 @@ void append(std::string const &s) {
break;
}
}
void append(const char *c) {
append(std::string(c));
void append(const char c) {
std::string tmp_str;
tmp_str += c;
append(tmp_str);
}
void cleanup() {
@ -274,7 +276,7 @@ std::string make_html(std::filesystem::path const &path) {
} else append(" ");
break;
default:
append(&c);
append(c);
break;
}
}