From 52f54d07bdc0dc72e86560dea4c7d1470c7078d9 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Wed, 15 Mar 2017 22:45:48 -0400 Subject: [PATCH] remove blank lines --- wrap/Argument.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wrap/Argument.cpp b/wrap/Argument.cpp index 1077e3df6..6455297c4 100644 --- a/wrap/Argument.cpp +++ b/wrap/Argument.cpp @@ -251,9 +251,12 @@ void ArgumentList::emit_cython_pyx(FileWriter& file) const { /* ************************************************************************* */ std::string ArgumentList::pyx_convertEigenTypeAndStorageOrder(const std::string& indent) const { - string ret; - for (size_t j = 0; j < size(); ++j) - ret += indent + at(j).pyx_convertEigenTypeAndStorageOrder() + "\n"; + string ret, conversion; + for (size_t j = 0; j < size(); ++j) { + conversion = at(j).pyx_convertEigenTypeAndStorageOrder(); + if (!conversion.empty()) + ret += indent + conversion + "\n"; + } return ret; }