| @@ 1049-1053 (lines=5) @@ | ||
| 1046 | // Strip trailing spaces from the RTL text |
|
| 1047 | $countTrailingSpaces = 0; |
|
| 1048 | while ($textSpan != '') { |
|
| 1049 | if (substr($textSpan, -1) == ' ') { |
|
| 1050 | $countTrailingSpaces++; |
|
| 1051 | $textSpan = substr($textSpan, 0, -1); |
|
| 1052 | continue; |
|
| 1053 | } |
|
| 1054 | if (substr($textSpan, -6) == ' ') { |
|
| 1055 | $countTrailingSpaces++; |
|
| 1056 | $textSpan = substr($textSpan, 0, -6); |
|
| @@ 1054-1058 (lines=5) @@ | ||
| 1051 | $textSpan = substr($textSpan, 0, -1); |
|
| 1052 | continue; |
|
| 1053 | } |
|
| 1054 | if (substr($textSpan, -6) == ' ') { |
|
| 1055 | $countTrailingSpaces++; |
|
| 1056 | $textSpan = substr($textSpan, 0, -6); |
|
| 1057 | continue; |
|
| 1058 | } |
|
| 1059 | break; |
|
| 1060 | } |
|
| 1061 | ||