Fix an instance of -Werror=misleading-indentation

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) {
      |  ^~
This commit is contained in:
Scott Kostyshak 2021-02-17 22:56:13 -05:00
parent c21cd7dc2b
commit 6e8b3906df

View File

@ -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) {