MDL-49988 wiki: fix broken page layout if html contains line breaks

This commit is contained in:
Daniel Materka 2017-05-16 19:00:02 +01:00
parent 17fb1d84a2
commit 5058a4d199

View File

@ -1382,7 +1382,7 @@ function wiki_print_page_content($page, $context, $subwikiid) {
}
}
$html = file_rewrite_pluginfile_urls($page->cachedcontent, 'pluginfile.php', $context->id, 'mod_wiki', 'attachments', $subwikiid);
$html = format_text($html, FORMAT_MOODLE, array('overflowdiv'=>true, 'allowid'=>true));
$html = format_text($html, FORMAT_HTML, array('overflowdiv' => true, 'allowid' => true));
echo $OUTPUT->box($html);
echo $OUTPUT->tag_list(core_tag_tag::get_item_tags('mod_wiki', 'wiki_pages', $page->id),