mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:37:36 +00:00
LibPDF: Simplify a loop
No behavior change.
This commit is contained in:
parent
e4e1208050
commit
d18f01d7d7
1 changed files with 6 additions and 10 deletions
|
@ -145,17 +145,13 @@ DeprecatedString StreamObject::to_deprecated_string(int indent) const
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
auto string = encode_hex(bytes());
|
auto string = encode_hex(bytes());
|
||||||
while (true) {
|
while (string.length() > 60) {
|
||||||
if (string.length() > 60) {
|
|
||||||
builder.appendff("{}\n", string.substring(0, 60));
|
builder.appendff("{}\n", string.substring(0, 60));
|
||||||
append_indent(builder, indent);
|
append_indent(builder, indent);
|
||||||
string = string.substring(60);
|
string = string.substring(60);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.appendff("{}\n", string);
|
builder.appendff("{}\n", string);
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.append("endstream"sv);
|
builder.append("endstream"sv);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue