| 5345 | 5345 | // Regex uses vars, so add before formatting |
| 5346 | 5346 | getMessage = getRegexedString(getMessage, isImpersonate ? regex_placement.USER_INPUT : regex_placement.AI_OUTPUT); |
| 5347 | 5347 | |
| 5348 | | - if (!displayIncompleteSentences && power_user.trim_sentences) { |
| 5349 | | - getMessage = trimToEndSentence(getMessage, power_user.include_newline); |
| 5350 | | - } |
| 5351 | | - |
| 5352 | 5348 | if (power_user.collapse_newlines) { |
| 5353 | 5349 | getMessage = collapseNewlines(getMessage); |
| 5354 | 5350 | } |
| 5355 | 5351 | |
| 5356 | | - if (power_user.trim_spaces) { |
| 5357 | | - getMessage = getMessage.trim(); |
| 5358 | | - } |
| 5359 | 5352 | // trailing invisible whitespace before every newlines, on a multiline string |
| 5360 | 5353 | // "trailing whitespace on newlines \nevery line of the string \n?sample text" -> |
| 5361 | 5354 | // "trailing whitespace on newlines\nevery line of the string\nsample text" |