Procházet zdrojové kódy

[Minor] Ignore virtual tags

tags/3.0
Vsevolod Stakhov před 3 roky
rodič
revize
9269534f19
1 změnil soubory, kde provedl 7 přidání a 3 odebrání
  1. 7
    3
      src/libserver/html/html.cxx

+ 7
- 3
src/libserver/html/html.cxx Zobrazit soubor

@@ -1786,10 +1786,14 @@ html_debug_structure(const html_content &hc) -> std::string
if (hc.root_tag) {
auto rec_functor = [&](const html_tag *t, int level, auto rec_functor) -> void {
std::string pluses(level, '+');
output += fmt::format("{}{};", pluses,
html_tags_defs.name_by_id_safe(t->id));

if (!(t->flags & (FL_VIRTUAL|FL_IGNORE))) {
output += fmt::format("{}{};", pluses,
html_tags_defs.name_by_id_safe(t->id));
level ++;
}
for (const auto *cld : t->children) {
rec_functor(cld, level + 1, rec_functor);
rec_functor(cld, level, rec_functor);
}
};


Načítá se…
Zrušit
Uložit