﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20624	Truncatechars add empty space char at the beginning of the string	stefano.vergani.it@…	nobody	"Hi, I am using Dj 1.4.2 and I am having this is issue with truncate chars: when the value exceeds the char limit I set the result of truncating has a leading white space that wasn't there in the first place.

{{{
#!div style=""font-size: 80%""
In the template:
  {{{#!python
  <input type=""hidden"" id=""donate_progetto"" value=""{{ progetto.denominazione|truncatechars:40 }}""/>
  }}}
}}}


{{{
#!div style=""font-size: 80%""
Output:
  {{{#!python
   <input type=""hidden"" id=""donate_progetto"" value="" CORREGGIO. Torre Civica - Completame...""/>
  }}}
}}}

If i remove runcatechars the result is the following

{{{
#!div style=""font-size: 80%""
Output:
  {{{#!python
   <input type=""hidden"" id=""donate_progetto"" value=""CORREGGIO. Torre Civica - Completamento intervento di riparazione e consolidamento, successivo alla messa in sicurezza""/>
  }}}
}}}


"	Uncategorized	closed	Template system	1.4	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
