Skip to content

Commit 5a15f25

Browse files
authored
Merge pull request doxygen#11376 from albert-github/feature/issue_11371
Issue doxygen#11371 Odd behavior of line breaks in double quotes
2 parents f11dccc + 152ad34 commit 5a15f25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mandocvisitor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,12 +990,15 @@ void ManDocVisitor::filter(const QCString &str)
990990
{
991991
const char *p=str.data();
992992
char c=0;
993+
bool insideDoubleQuote = false;
993994
while ((c=*p++))
994995
{
995996
switch(c)
996997
{
997998
case '.': m_t << "\\&."; break; // see bug652277
998999
case '\\': m_t << "\\\\"; break;
1000+
case '\"': m_t << "\""; insideDoubleQuote = !insideDoubleQuote; break;
1001+
case '\n': if (!insideDoubleQuote) m_t << c; break;
9991002
default: m_t << c; break;
10001003
}
10011004
}

0 commit comments

Comments
 (0)