From f1f4daba914864ff59cf7e59438714be8acdf7d4 Mon Sep 17 00:00:00 2001 From: Syxton Date: Wed, 15 Jul 2015 08:19:42 -0400 Subject: [PATCH] MDL-50293 navigation: File name not wrapping A long File name doesn't always wrap correctly in the Navigation block. --- blocks/navigation/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/navigation/renderer.php b/blocks/navigation/renderer.php index 74cc0885f7b..2a92c9ff95a 100644 --- a/blocks/navigation/renderer.php +++ b/blocks/navigation/renderer.php @@ -115,7 +115,7 @@ class block_navigation_renderer extends plugin_renderer_base { } else if ($item->action instanceof action_link) { //TODO: to be replaced with something else $link = $item->action; - $link->text = $icon.$link->text; + $link->text = $icon.html_writer::span($link->text, 'item-content-wrap'); $link->attributes = array_merge($link->attributes, $attributes); $content = $this->output->render($link); } else if ($item->action instanceof moodle_url) {