]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-3721 Wiki adds lots of invalid tags to the top of the page in every edit.
authordanmarsden <danmarsden>
Tue, 29 Jan 2008 20:50:48 +0000 (20:50 +0000)
committerdanmarsden <danmarsden>
Tue, 29 Jan 2008 20:50:48 +0000 (20:50 +0000)
mod/wiki/ewiki/ewiki.php

index be5f40e840776f36a8969fed3feb0d4e3297c48a..5600af901997640c4f3ca55732f5a2dbb1a5a52d 100644 (file)
         \w[-_.+\w]+@(\w[-_\w]+[.])+\w{2,}   ) \007x",
 
     #-- rendering ruleset
-           "wm_indent" => '<div style="margin-left:15px;" class="indent">',
+           "wm_indent" => '',
            "wm_table_defaults" => 'cellpadding="2" border="1" cellspacing="0"',
            "wm_whole_line" => array(),
            "htmlentities" => array(
@@ -1938,7 +1938,7 @@ function ewiki_format (
                }
             }
             while ($n_indent < $s["indent"]) { 
-               $out .= "</div>\n";
+               $out .= "";
                $s["indent"]--;
             }
 
@@ -2149,7 +2149,7 @@ function ewiki_format_close_para(&$ooo, &$s) {
    }
    #-- indentation
    while ($s["indent"]) {
-      $out .= "</div>";
+      $out .= "";
       $s["indent"]--;
    }
 }