mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 11:39:43 +00:00
LibMarkdown: Reduce debug spam from invalid characters in table headings
Happens a lot when fuzzing.
This commit is contained in:
parent
030dac8c4d
commit
7094697743
Notes:
sideshowbarker
2024-07-19 01:10:13 +09:00
Author: https://github.com/Lubrsi
Commit: 7094697743
Pull-request: https://github.com/SerenityOS/serenity/pull/4255
1 changed files with 2 additions and 0 deletions
|
@ -186,7 +186,9 @@ OwnPtr<Table> Table::parse(Vector<StringView>::ConstIterator& lines)
|
||||||
size_t relative_width = delimiter.length();
|
size_t relative_width = delimiter.length();
|
||||||
for (auto ch : delimiter) {
|
for (auto ch : delimiter) {
|
||||||
if (ch != '-') {
|
if (ch != '-') {
|
||||||
|
#ifdef DEBUG_MARKDOWN
|
||||||
dbg() << "Invalid character _" << ch << "_ in table heading delimiter (ignored)";
|
dbg() << "Invalid character _" << ch << "_ in table heading delimiter (ignored)";
|
||||||
|
#endif
|
||||||
--relative_width;
|
--relative_width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue