Browse Source

Added list syntax error

Joachim M. Giæver 7 years ago
parent
commit
ea769268e2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      SamiTwigExtension.php

+ 3 - 3
SamiTwigExtension.php

@@ -600,7 +600,7 @@ class SamiTwigExtension extends \Twig_Extension {
                 self::method_signature($method),
                 (function() use ($method) {
                     if (!empty($see = self::see($method))) {
-                        return "\nSee also:\n* " . self::join($see, "* ") . "\n";
+                        return "\nSee also:\n" . self::join($see, "* ") . "\n";
                     }
 
                     return null;
@@ -656,7 +656,7 @@ class SamiTwigExtension extends \Twig_Extension {
                         $links = array();
                         foreach($method->getExceptions() as $Exception)
                             $links[] = self::href($Exception[0]->getShortName(), $Exception[0]->getName(), false, "Exception: " . $Exception[0]->getName());
-                        return "\n* " . self::join($links, "* ") . "\n";
+                        return "\n" . self::join($links, "* ") . "\n";
                     })();
                 })(),
 
@@ -665,7 +665,7 @@ class SamiTwigExtension extends \Twig_Extension {
                     if (empty(self::todo($method)))
                         return null;
 
-                    return "\n> Todo: " . self::join(self::todo($method), "> * ") . "\n";
+                    return "\nTodo: " . self::join(self::todo($method), "* ") . "\n";
                 })()
             );
         }