Commit 88ee2bfb authored by Lorenz Haas's avatar Lorenz Haas
Browse files

CppEditor: Preserve indent during Doxygen continuation handling



Change-Id: I30bba610fbe03fbfd9bc987805c57df6035d1c36
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 0ef65124
......@@ -176,7 +176,7 @@ bool handleDoxygenCppStyleContinuation(QTextCursor &cursor)
return false;
QString newLine(QLatin1Char('\n'));
newLine.append(QString(offset, QLatin1Char(' '))); // indent correctly
newLine.append(text.left(offset)); // indent correctly
newLine.append(commentMarker);
newLine.append(QLatin1Char(' '));
......
......@@ -205,6 +205,17 @@ void DoxygenTest::testBasic_data()
" int a;\n"
);
QTest::newRow("cpp_styleA_indented_preserve_mixed_indention_continuation") << _(
"\t bool preventFolding;\n"
"\t /// \brief a|\n"
"\t int a;\n"
) << _(
"\t bool preventFolding;\n"
"\t /// \brief a\n"
"\t /// \n"
"\t int a;\n"
);
/// test cpp style doxygen comment continuation when inside a indented scope
QTest::newRow("cpp_styleA_indented_continuation") << _(
" bool preventFolding;\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment