From a9a6b4f18a3bf8e11ce657fb8f928a4212d87005 Mon Sep 17 00:00:00 2001 From: Jalaloedien Abrahams Date: Mon, 19 Feb 2007 09:03:09 +0000 Subject: [PATCH] KTS-1539 "A document title containing random special characters causes the truncation to shorten the title length to 24 characters instead of the specified 40 characters. " Fixed. --- templates/kt3/fieldsets/generic.smarty | 2 +- templates/ktcore/document/view.smarty | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/kt3/fieldsets/generic.smarty b/templates/kt3/fieldsets/generic.smarty index 2e48623..f34c37b 100644 --- a/templates/kt3/fieldsets/generic.smarty +++ b/templates/kt3/fieldsets/generic.smarty @@ -8,7 +8,7 @@ - + diff --git a/templates/ktcore/document/view.smarty b/templates/ktcore/document/view.smarty index 2d48adf..11402fa 100644 --- a/templates/ktcore/document/view.smarty +++ b/templates/ktcore/document/view.smarty @@ -1,4 +1,4 @@ -

{$document->getName()|escape|truncate:40:"..."}

+

{$document->getName()|escape|wordwrap:40:"\n":true}

{if ($document->getIsCheckedOut() == 1)} {capture assign=checkout_user}{$sCheckoutUser}{/capture} -- libgit2 0.21.4
{i18n}Document Filename{/i18n}{$filename} ({$context->_sizeHelper($document->getSize())}){$filename|wordwrap:40:"\n":true} ({$context->_sizeHelper($document->getSize())})