mirror of
https://github.com/danbulant/markdown-wasm
synced 2026-05-24 12:35:34 +00:00
minor code formatting
This commit is contained in:
parent
352fd5008b
commit
dc0823ce38
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ static void render_html_escaped(HtmlRenderer* r, const char* data, size_t size)
|
||||||
off += 4;
|
off += 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (off < size && !HTML_NEED_ESCAPE(data[off])) {
|
while (off < size && !HTML_NEED_ESCAPE(data[off])) {
|
||||||
off++;
|
off++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -152,7 +152,7 @@ static size_t WBufAppendSlug(WBuf* b, const char* pch, size_t len) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c = slugMap[x];
|
c = slugMap[x];
|
||||||
if (c != '-' || pc != '-' && pc) {
|
if (c != '-' || (pc != '-' && pc)) {
|
||||||
// note: check "pc" to trim leading '-'
|
// note: check "pc" to trim leading '-'
|
||||||
*(b->ptr++) = c;
|
*(b->ptr++) = c;
|
||||||
pc = c;
|
pc = c;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue