diff --git a/src/Magnum/Trade/Implementation/converterUtilities.h b/src/Magnum/Trade/Implementation/converterUtilities.h index 587030592..3b150709a 100644 --- a/src/Magnum/Trade/Implementation/converterUtilities.h +++ b/src/Magnum/Trade/Implementation/converterUtilities.h @@ -95,12 +95,11 @@ void printPluginConfigurationInfo(Debug& d, const Utility::ConfigurationGroup& c d << Debug::resetColor; } else { /* Configuration contents are delimited by these markers in order - to include them in Doxygen-generated docs. If we reach them, - it's the end of the (public) configuration values. Don't print - them, don't print even the last newline, and exit. */ - if(i.second() == "# [configuration_]"_s) { - return; - } + to include them in Doxygen-generated docs. Newly added values + will however appear *after* these markers so we can't just + return here. */ + if(i.second() == "# [configuration_]"_s) + continue; /* Print leading space only if there's actually something */ d << Debug::newline; diff --git a/src/Magnum/Trade/Test/ImageConverterImplementationTest.cpp b/src/Magnum/Trade/Test/ImageConverterImplementationTest.cpp index f83db6201..42ccd1bd9 100644 --- a/src/Magnum/Trade/Test/ImageConverterImplementationTest.cpp +++ b/src/Magnum/Trade/Test/ImageConverterImplementationTest.cpp @@ -253,7 +253,8 @@ void ImageConverterImplementationTest::pluginConfigurationInfoDoxygenDelimiter() # A comment value=yes # [configuration_] -privateValue=SECRET + +newlyAddedValue=42 )"; Utility::Configuration conf{in}; @@ -265,7 +266,9 @@ privateValue=SECRET CORRADE_COMPARE(out.str(), "Configuration:\n" " # A comment\n" - " value=yes\n"); + " value=yes\n" + "\n" + " newlyAddedValue=42\n"); } void ImageConverterImplementationTest::importerInfo() {