aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/ambdec.cpp2
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")
{