From 13b576236793140543897a7e8d843e24c6278599 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 26 Nov 2013 18:41:02 +0100 Subject: [PATCH] [-] FO : trailing \t in minified html --- classes/Media.php | 2 +- .../modules/blockcategories/category-tree-branch-top.tpl | 3 +-- .../modules/blockcategories/category-tree-branch.tpl | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/classes/Media.php b/classes/Media.php index f3ac52813..f58889220 100755 --- a/classes/Media.php +++ b/classes/Media.php @@ -68,7 +68,7 @@ class MediaCore { //set an alphabetical order for args $html_content = preg_replace_callback( - '/(<[a-zA-Z0-9]+)((\s?[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']\s?)*)>/', + '/(<[a-zA-Z0-9]+)((\s\t?[a-zA-Z0-9]+=[\"\\\'][^\"\\\']*[\"\\\']\s\t?)*)>/', array('Media', 'minifyHTMLpregCallback'), $html_content, Media::getBackTrackLimit()); diff --git a/themes/default-bootstrap/modules/blockcategories/category-tree-branch-top.tpl b/themes/default-bootstrap/modules/blockcategories/category-tree-branch-top.tpl index ce97048b6..d84c173d1 100644 --- a/themes/default-bootstrap/modules/blockcategories/category-tree-branch-top.tpl +++ b/themes/default-bootstrap/modules/blockcategories/category-tree-branch-top.tpl @@ -24,8 +24,7 @@ *}
  • -

    {$node.name|escape:'html':'UTF-8'}

    +

    {$node.name|escape:'html':'UTF-8'}

    {if $node.children|@count > 0}