Fixed word-wrap issues
authorMarcel Werk <burntime@woltlab.com>
Tue, 6 Aug 2013 12:25:43 +0000 (14:25 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 6 Aug 2013 12:25:43 +0000 (14:25 +0200)
wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php [deleted file]
wcfsetup/install/files/style/global.less

diff --git a/wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/WordwrapModifierTemplatePlugin.class.php
deleted file mode 100644 (file)
index 9c44693..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-namespace wcf\system\template\plugin;
-use wcf\system\template\TemplateEngine;
-use wcf\util\StringUtil;
-
-/**
- * Template modifier plugin which wordwraps a string.
- * 
- * Usage:
- *     {$foo|wordwrap:50:' '}
- * 
- * @author     Marcel Werk
- * @copyright  2001-2013 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    com.woltlab.wcf
- * @subpackage system.template.plugin
- * @category   Community Framework
- */
-class WordwrapModifierTemplatePlugin implements IModifierTemplatePlugin {
-       /**
-        * @see wcf\system\template\IModifierTemplatePlugin::execute()
-        */
-       public function execute($tagArgs, TemplateEngine $tplObj) {
-               // default values
-               $width = 50;
-               $break = ' ';
-               
-               // get values
-               $string = $tagArgs[0];
-               if (isset($tagArgs[1])) $width = intval($tagArgs[1]);
-               if (isset($tagArgs[2])) $break = $tagArgs[2];
-               
-               return StringUtil::wordwrap($string, $width, $break);
-       }
-}
index cf34976991c6b071a9faf137f0944a61800af361..38c21ba00aecdc306b6c2776dd8ca3848ab879a2 100644 (file)
@@ -5,6 +5,7 @@ body {
        font-family: @wcfBaseFontFamily;
        font-size: @wcfBaseFontSize;
        line-height: @wcfBaseLineHeight;
+       word-break: break-all;
 }
 
 small {