From 6e8b3906df55826281a9ea9a8fd97bf5f7d98613 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Wed, 17 Feb 2021 22:56:13 -0500 Subject: [PATCH] Fix an instance of -Werror=misleading-indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full GCC output is: /home/scott/lyxbuilds/master/repo/src/insets/InsetText.cpp: In member function ‘void lyx::InsetText::docbook(lyx::XMLStream&, const lyx::OutputParams&, lyx::InsetText::XHTMLOptions) const’: /home/scott/lyxbuilds/master/repo/src/insets/InsetText.cpp:713:5: error: this ‘for’ clause does not guard... [-Werror=misleading-indentation] 713 | for (auto const & arg : appendedArguments) | ^~~ /home/scott/lyxbuilds/master/repo/src/insets/InsetText.cpp:717:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 717 | if (writeOuterTag) { | ^~ --- src/insets/InsetText.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 79425887be..fa1f40c7af 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -709,9 +709,9 @@ void InsetText::docbook(XMLStream & xs, OutputParams const & rp, XHTMLOptions op docbookParagraphs(text_, buffer(), xs, runparams); xs.endDivision(); - // - Think about the arguments after the paragraph. - for (auto const & arg : appendedArguments) - arg->docbook(xs, np); + // - Think about the arguments after the paragraph. + for (auto const & arg : appendedArguments) + arg->docbook(xs, np); // - Close the required tags. if (writeOuterTag) {