From 218b6ce2465577a5ee636e501c3bb84983feb68a Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 28 Feb 2016 23:52:37 +0100 Subject: [PATCH] Revert "trim docstrings (closes #112)" This reverts commit b3ef54a5449f2ec42e1d091b208ffb12258e755a. --- include/pybind11/pybind11.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 1ec41ace8..c78f1e220 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -303,11 +303,7 @@ protected: signatures += "\n"; if (it->doc && strlen(it->doc) > 0) { signatures += "\n"; - 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 += it->doc; signatures += "\n"; } if (it->next)