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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void append(const char *c) {
|
void append(const char c) {
|
||||||
append(std::string(c));
|
std::string tmp_str;
|
||||||
|
tmp_str += c;
|
||||||
|
append(tmp_str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cleanup() {
|
void cleanup() {
|
||||||
|
@ -274,7 +276,7 @@ std::string make_html(std::filesystem::path const &path) {
|
||||||
} else append(" ");
|
} else append(" ");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
append(&c);
|
append(c);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue