pad using &nbsp

Author Message

James Ward

Wednesday 22 June 2005 11:28:21 am

The pad function by default pads spaces where additional characters are needed however these are standard spaces and are not rendered in a browser. Is it possible to make &nbsp the pad character?

This default of standard spaces for the pad character is pretty useless.

http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/operators/string_handling

working at www.wardnet.com
blogging at www.jamesward.ca

Ɓukasz Serwatka

Friday 24 June 2005 6:52:36 am

Hi James,

Have you tried?

{'String'|pad( 16, ' ' )}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

James Ward

Wednesday 29 June 2005 12:16:13 pm

Tried that with no success. Both with single and double quotes. It pads the actual letters. My data appears as:
text&nbs
text2&nb
text10&n
...and so on.

working at www.wardnet.com
blogging at www.jamesward.ca

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.