Skip to content

Commit

Permalink
Add bottom blank line (#388)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Hanson <32202698+jonbhanson@users.noreply.github.com>
  • Loading branch information
mihiron and jonbhanson committed Jul 17, 2022
1 parent a1fe777 commit 254a044
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/android.dart
Expand Up @@ -298,7 +298,7 @@ void _applyLaunchBackgroundXml({
}

launchBackgroundFile.writeAsStringSync(
launchBackgroundDocument.toXmlString(pretty: true, indent: ' '),
'${launchBackgroundDocument.toXmlString(pretty: true, indent: ' ')}\n',
);
}

Expand Down Expand Up @@ -429,7 +429,7 @@ Future<void> _updateStylesFile({
}

stylesFile.writeAsStringSync(
stylesDocument.toXmlString(pretty: true, indent: ' '),
'${stylesDocument.toXmlString(pretty: true, indent: ' ')}\n',
);
}

Expand Down
8 changes: 6 additions & 2 deletions lib/ios.dart
Expand Up @@ -387,7 +387,9 @@ void _updateLaunchScreenStoryboard({
}
}

file.writeAsStringSync(xmlDocument.toXmlString(pretty: true, indent: ' '));
file.writeAsStringSync(
'${xmlDocument.toXmlString(pretty: true, indent: ' ')}\n',
);
}

/// Creates LaunchScreen.storyboard with splash image path
Expand Down Expand Up @@ -556,5 +558,7 @@ void _updateInfoPlistFile({
}
}

file.writeAsStringSync(xmlDocument.toXmlString(pretty: true, indent: ' '));
file.writeAsStringSync(
'${xmlDocument.toXmlString(pretty: true, indent: ' ')}\n',
);
}
3 changes: 1 addition & 2 deletions lib/web.dart
Expand Up @@ -282,7 +282,6 @@ void updateIndex({
);
}
}

if (existingBrandingPictureLine == 0) {
if (brandingImagePath != null) {
for (var x = _indexHtmlBrandingPicture.length - 1; x >= 0; x--) {
Expand All @@ -303,5 +302,5 @@ void updateIndex({
);
}
}
webIndex.writeAsStringSync(lines.join('\n'));
webIndex.writeAsStringSync('${lines.join('\n')}\n');
}

0 comments on commit 254a044

Please sign in to comment.