fix bad indentation (#41263)

This commit is contained in:
Alexandre Ardhuin
2019-09-25 20:24:57 +02:00
committed by GitHub
parent c81c78f828
commit 9c6f11d5d1

View File

@@ -866,7 +866,7 @@ class _PrefixedStringBuilder {
///
/// This method wraps a sequence of text where only some spans of text can be
/// used as wrap boundaries.
static Iterable<String> _wordWrapLine(String message, List<int> wrapRanges, int width, { int startOffset = 0, int otherLineOffset = 0}) sync* {
static Iterable<String> _wordWrapLine(String message, List<int> wrapRanges, int width, { int startOffset = 0, int otherLineOffset = 0}) sync* {
if (message.length + startOffset < width) {
// Nothing to do. The line doesn't wrap.
yield message;
@@ -1290,8 +1290,7 @@ class TextTreeRenderer {
if (!propertyRender.endsWith('\n'))
builder.write('\n');
}
} else
{
} else {
final String propertyRender = render(property,
prefixLineOne: '${builder.prefixOtherLines}${propertyStyle.prefixLineOne}',
prefixOtherLines: '${builder.prefixOtherLines}${propertyStyle.childLinkSpace}${propertyStyle.prefixOtherLines}',