trim docstrings (closes #112)

This commit is contained in:
Wenzel Jakob 2016-02-24 13:39:53 +01:00
parent 4a50fa5cd4
commit b3ef54a544

View File

@ -303,7 +303,11 @@ protected:
signatures += "\n"; signatures += "\n";
if (it->doc && strlen(it->doc) > 0) { if (it->doc && strlen(it->doc) > 0) {
signatures += "\n"; signatures += "\n";
signatures += it->doc; std::string str = it->doc;
size_t first = str.find_first_not_of(" \n\t\r");
size_t last = str.find_last_not_of(" \n\t\r");
if (first != std::string::npos)
signatures += str.substr(first, last - first + 1);
signatures += "\n"; signatures += "\n";
} }
if (it->next) if (it->next)