Project

General

Profile

Actions

Bug #51650

closed

String paddings with 0 are not possible in strPad

Added by Lars Malach about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2013-09-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

"padWidth = 0" gets ignored. Instead of "0" the default value " " (space character) gets displayed as padding width.

Example-Code:

10 = TEXT
10.value = TYPO3 - inspiring people to share.
10.strPad {
  length = 37
  padWith = 0
  type = both
}

Current: " TYPO3 - inspirier people to share. "
How it should be: "0TYPO3 - inspirier people to share.00"

Actions

Also available in: Atom PDF