According to plugin documentation, TrailingSpaces -plugin is capable to do exactly what you wanted (among of other things).
Сервис поддержки клиентов работает на платформе UserEcho
According to plugin documentation, TrailingSpaces -plugin is capable to do exactly what you wanted (among of other things).