Skip to content

Commit 502c836

Browse files
authored
Merge pull request doxygen#11869 from albert-github/feature/bug_latex_break
Line breaking points in LaTeX
2 parents 3934bcd + 20ddc67 commit 502c836

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/latexgen.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2520,7 +2520,7 @@ void filterLatexString(TextStream &t,const QCString &str,
25202520
default:
25212521
//if (!insideTabbing && forceBreaks && c!=' ' && *p!=' ')
25222522
if (!insideTabbing &&
2523-
((c>='A' && c<='Z' && pc!=' ' && !(pc>='A' && pc <= 'Z') && pc!='\0' && *p) || (c==':' && pc!=':') || (pc=='.' && isId(c)))
2523+
((c>='A' && c<='Z' && pc!=' ' && !(pc>='A' && pc <= 'Z') && pc!='\0' && *p) || (pc=='.' && isId(c)))
25242524
)
25252525
{
25262526
t << "\\+";
@@ -2533,6 +2533,10 @@ void filterLatexString(TextStream &t,const QCString &str,
25332533
{
25342534
t << static_cast<char>(c);
25352535
}
2536+
if (!insideTabbing && ((c==':' && *p!=':') || c=='/'))
2537+
{
2538+
t << "\\+";
2539+
}
25362540
}
25372541
}
25382542
pc = c;

0 commit comments

Comments
 (0)