mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Strip trailing whitespace in template descriptions
This commit is contained in:
parent
70addf1ed0
commit
258fa81d90
2 changed files with 13 additions and 2 deletions
|
|
@ -68,5 +68,11 @@ SaveTemplateDialog::get_template_name () const
|
|||
std::string
|
||||
SaveTemplateDialog::get_description () const
|
||||
{
|
||||
return _description_editor.get_buffer()->get_text();
|
||||
std::string desc_txt = _description_editor.get_buffer()->get_text ();
|
||||
std::string::reverse_iterator wss = desc_txt.rbegin();
|
||||
while (wss != desc_txt.rend() && isspace (*wss)) {
|
||||
desc_txt.erase (--(wss++).base());
|
||||
}
|
||||
|
||||
return desc_txt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue