]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12061, <p> in html editor breaks xhtml strict
authortoyomoyo <toyomoyo>
Thu, 8 Nov 2007 05:38:01 +0000 (05:38 +0000)
committertoyomoyo <toyomoyo>
Thu, 8 Nov 2007 05:38:01 +0000 (05:38 +0000)
mod/resource/type/directory/resource.class.php

index 4ac61af878fa0a4bed9fca4f94f57685e0fdf60e..292e4616252c51e5568271e364d015e5dd91dec7 100644 (file)
@@ -42,6 +42,7 @@ function display() {
 
     $formatoptions = new object();
     $formatoptions->noclean = true;
+    $formatoptions->para = false; // MDL-12061, <p> in html editor breaks xhtml strict
 
     add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);