Page 1 of 1

<pad> results are incorrect when both length and string are variable

Posted: 11 Mar 2026 07:55
by altoclef

Code: Select all

$string = 'abc';
    $length = 12;

    $r1 = "<pad 12>abc";                       // "         abc"
    $r2 = "<pad $length>abc";                  // "         abc"
    $r3 = "<pad 12>$string";                   // "         abc"
    $r4 = "<pad $length>$string";              // "     $string"
    text "$r1<crlf>$r2<crlf>$r3<crlf>$r4";
(v27.20.1004)

Re: <pad> results are incorrect when both length and string are variable

Posted: 11 Mar 2026 11:23
by admin
Confirmed. Fix comes. :tup:

Re: <pad> results are incorrect when both length and string are variable

Posted: 16 Mar 2026 09:15
by altoclef
Confirmed fixed in 27.20.1107. Thanks. :tup: