]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
tabs2spaces
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 23 Aug 2013 19:07:32 +0000 (21:07 +0200)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 23 Aug 2013 19:07:32 +0000 (21:07 +0200)
inc/poche/Url.class.php

index 36fdd0f5b445ab27daa6c40b96a9070cd33921ff..3c74fb434bb1b7f14cd0f0934874893c44cb578c 100644 (file)
@@ -65,13 +65,14 @@ class Url
                 $tidy = tidy_parse_string($html, array(), 'UTF8');
                 $tidy->cleanRepair();
 
-                               //Warning: tidy might fail so, ensure there is still a content
-                               $body = $tidy->body();
+                //Warning: tidy might fail so, ensure there is still a content
+                $body = $tidy->body();
 
-                               //hasChildren does not seem to work, just check the string
-                               //returned (and do not forget to clean the white spaces)
-                               if (preg_replace('/\s+/', '', $body->value) !== "<body></body>")
-                                       $html = $tidy->value;
+                //hasChildren does not seem to work, just check the string
+                //returned (and do not forget to clean the white spaces)
+                if (preg_replace('/\s+/', '', $body->value) !== "<body></body>") {
+                    $html = $tidy->value;
+                }
             } 
 
             $parameters = array();