From 6023fe7ff22848bc29ee67395eeb10f066758c06 Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Sun, 2 Dec 2018 14:50:55 +1100 Subject: ccmake: Append rather than replace Generators section of docs Using SetSection() discards the heading line populated by addCMakeStandardDocSections(), whereas AppendSection() preserves it. This also makes the code used for ccmake consistent with that used for cmake and cmake-gui. --- Source/CursesDialog/ccmake.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index 44789b0..ec3cd9f 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -95,7 +95,7 @@ int main(int argc, char const* const* argv) if (argc == 1) { doc.AppendSection("Usage", cmDocumentationUsageNote); } - doc.SetSection("Generators", generators); + doc.AppendSection("Generators", generators); doc.PrependSection("Options", cmDocumentationOptions); return doc.PrintRequestedDocumentation(std::cout) ? 0 : 1; } -- cgit v0.12