diff options
author | Chris Robinson <[email protected]> | 2022-09-15 00:55:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-09-15 00:55:26 -0700 |
commit | b566970a442a8e3b51ab4f8136d6ba608b7defde (patch) | |
tree | 9c850e5d9ddf279197953fab3d15626d9a8d578e | |
parent | c9000979db26ca1c726aaaca3a53a8bf12e0d659 (diff) |
Clear trailing whitespace from the loaded ambdec description
-rw-r--r-- | core/ambdec.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ambdec.cpp b/core/ambdec.cpp index 8b1be0c7..bcad1b55 100644 --- a/core/ambdec.cpp +++ b/core/ambdec.cpp @@ -173,6 +173,8 @@ al::optional<std::string> AmbDecConf::load(const char *fname) noexcept while(istr.good() && std::isspace(istr.peek())) istr.ignore(); std::getline(istr, Description); + while(!Description.empty() && std::isspace(Description.back())) + Description.pop_back(); } else if(command == "/version") { |