updated to the new pikotools api (api2021): HTMLFilter renamed to HTMLParser

added to config: int html_filter_white_char_mode;
  how white characters between html tags are treated
  0 - WHITE_MODE_ORIGIN - they are copied from input to output
  1 - WHITE_MODE_SINGLE_LINE - new line characters are removed
  2 - WHITE_MODE_TREE - try to create a tree (some kind of pretty printing)
  default: 2
This commit is contained in:
2021-08-07 02:16:48 +02:00
parent 22134b6cc0
commit b424988d1b
22 changed files with 369 additions and 175 deletions

View File

@@ -64,7 +64,7 @@ Ezc::Blocks ezc_blocks;
Ezc::Objects<HtmlTextStream> ezc_objects;
Ezc::Vars ezc_vars;
LocaleFilter locale_filter;
pt::HTMLFilter html_filter;
pt::HTMLParser html_filter;
@@ -766,6 +766,7 @@ using namespace TemplatesFunctions;
//html_filter.TrimWhite(config->html_filter_trim_white);
//html_filter.BreakWord(config->html_filter_break_word);
html_filter.white_chars_mode(config->html_filter_white_char_mode);
html_filter.WrapLine(config->html_filter_wrap_line);
html_filter.InsertTabs(config->html_filter_tabs);
html_filter.SetNoFilterTag(config->html_filter_nofilter_tag);