PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » Pager » Bug #7243

spacesAfterSeparator and spacesBeforeSeparator are not Working

Details

Submitted2006-03-29 10:30 UTC
Fromjmzeag at yahoo dot es
Assignedquipo
StatusBogus
PackagePager
PHP Version5.0.0
OSWindows XP
Roadmaps(Not assigned)

Comments

[2006-03-29 10:30 UTC] jmzeag at yahoo dot es

Description:
------------
I´m defining these two properties with 0 spaces but it´s not working and the package renders always 3 spaces after the separator, that is defined as ''.

Test script:
---------------
define('SEPARATOR', '');
define('SPACES_SEPARATOR',0);
define('CUR_PAGE_LINK_CLASS_NAME', 'curNumber');

$params = array('spacesAfterSeparator ' => SPACES_SEPARATOR,
'spacesBeforeSeparator' => SPACES_SEPARATOR 'separator' => SEPARATOR,
'curPageLinkClassName' => CUR_PAGE_LINK_CLASS_NAME);

Expected result:
----------------
<a href='javascript:void(0)' onclick='var form = document.getElementById("fFiltro"); var input = ""; form.action = "/brick/www/index.php?action=list&table=inmuebles"; form.method = "POST"; input = document.createElement("input"); input.type = "hidden"; input.name = "pageid"; input.value = "1"; form.appendChild(input); form.submit(); return false;' title='page 1'>1</a> <span class="curNumber">2</span>

Actual result:
--------------
<a href='javascript:void(0)' onclick='var form = document.getElementById("fFiltro"); var input = ""; form.action = "/brick/www/index.php?action=list&table=inmuebles"; form.method = "POST"; input = document.createElement("input"); input.type = "hidden"; input.name = "pageid"; input.value = "1"; form.appendChild(input); form.submit(); return false;' title='page 1'>1</a>   <span class="curNumber">2</span>

[2006-03-30 08:10 UTC] jmzeag at yahoo dot es

Ooops! Sorry for the mistake. Sometimes when I code I´m so blind.

Thank you.