mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
*** empty log message ***
This commit is contained in:
parent
b8daa04c88
commit
744d2fa810
@ -694,7 +694,7 @@ format_text(ostream &out,
|
|||||||
if (!prefix.empty()) {
|
if (!prefix.empty()) {
|
||||||
out << prefix;
|
out << prefix;
|
||||||
indent_amount = indent_width - prefix.length();
|
indent_amount = indent_width - prefix.length();
|
||||||
if (prefix.length() + 1 > indent_width) {
|
if ((int)prefix.length() + 1 > indent_width) {
|
||||||
out << "\n";
|
out << "\n";
|
||||||
initial_break = true;
|
initial_break = true;
|
||||||
indent_amount = indent_width;
|
indent_amount = indent_width;
|
||||||
@ -759,6 +759,11 @@ format_text(ostream &out,
|
|||||||
if (q != min_eol) {
|
if (q != min_eol) {
|
||||||
// Here's a good place to stop!
|
// Here's a good place to stop!
|
||||||
eol = q + 1;
|
eol = q + 1;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// The line cannot be broken cleanly. Just let it keep going;
|
||||||
|
// don't try to wrap it.
|
||||||
|
eol = par;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
out << text.substr(p, eol - p) << "\n";
|
out << text.substr(p, eol - p) << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user