Trim all whitespace from the right of the template text
()
| 2423 | * Trim all whitespace from the right of the template text |
| 2424 | */ |
| 2425 | public void rtrim() { |
| 2426 | int index = text.length(); |
| 2427 | while ((index > 0) && (text.charAt(index - 1) <= ' ')) { |
| 2428 | index--; |
| 2429 | } |
| 2430 | text = text.substring(0, index); |
| 2431 | } |
| 2432 | |
| 2433 | /** |
| 2434 | * Checks if this template text contains whitespace only. |
no test coverage detected