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:
parent
1cc18e0b2a
commit
00d22de1a2
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue