mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-49988 wiki: fix broken page layout if html contains line breaks
This commit is contained in:
parent
17fb1d84a2
commit
5058a4d199
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user