summaryrefslogtreecommitdiff
path: root/inc/cli.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-03-20 19:41:27 +0100
committerAndreas Gohr <andi@splitbrain.org>2014-03-20 19:41:27 +0100
commit193eb41176fb95f01489814bcc879dc500257c84 (patch)
tree6c3d79bed07c0cacf4f9c6b5445116b8f81e4a3c /inc/cli.php
parentae1ce4a68df467af30fafe2e47a3c11983d7f8be (diff)
downloadrpg-193eb41176fb95f01489814bcc879dc500257c84.tar.gz
rpg-193eb41176fb95f01489814bcc879dc500257c84.tar.bz2
fixed broken wordwrapping
Diffstat (limited to 'inc/cli.php')
-rw-r--r--inc/cli.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/cli.php b/inc/cli.php
index 6380c9174..e8c2c9f3e 100644
--- a/inc/cli.php
+++ b/inc/cli.php
@@ -589,7 +589,7 @@ class DokuCLI_Options {
$maxlen = 0;
foreach($widths as $col => $width) {
- $wrapped[$col] = explode("\n", wordwrap($texts[$col], $width - 1, true)); // -1 char border
+ $wrapped[$col] = explode("\n", wordwrap($texts[$col], $width - 1, "\n", true)); // -1 char border
$len = count($wrapped[$col]);
if($len > $maxlen) $maxlen = $len;