From 5058a4d199f484b0712fe3399db7404a760899d8 Mon Sep 17 00:00:00 2001 From: Daniel Materka Date: Tue, 16 May 2017 19:00:02 +0100 Subject: [PATCH] MDL-49988 wiki: fix broken page layout if html contains line breaks --- mod/wiki/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/wiki/locallib.php b/mod/wiki/locallib.php index d19e7df26f2..725b5312ab5 100644 --- a/mod/wiki/locallib.php +++ b/mod/wiki/locallib.php @@ -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),