Browse code

Formatovanie vystupu

Cinan Rakosnik authored on 13/05/2013 at 00:46:19
Showing 1 changed files
... ...
@@ -45,20 +45,23 @@ class Parser {
45 45
                 }
46 46
 
47 47
                 $this->logger->log("<b>$name</b>");
48
+                $this->logger->log("<ul>");
48 49
                 $exists = false;
49 50
                 foreach ($found->item(0)->childNodes as $elem) {
50 51
 
51 52
                     $meal = trim($elem->nodeValue);
52 53
                     if (!empty($meal)) {
53
-                        $this->logger->log("\t<br>$meal\n");
54
+                        $this->logger->log("\t<li>$meal</li>\n");
54 55
                         $exists = true;
55 56
                     }
56 57
                 }
58
+                $this->logger->log("</ul>");
59
+
57 60
                 if (!$exists) {
58
-                    $this->logger->log($this->logger->newLine()."Hovno. Nic nemaju.");
61
+                    $this->logger->log("<i>Hovno. Nic nemaju.</i>" . $this->logger->newLine());
59 62
                 }
60
-                $this->logger->log($this->logger->newLine());
61 63
             }
64
+
62 65
             $this->logger->log($this->logger->newLine());
63 66
         }
64 67
     }