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
|
|
@ -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