From 4b02f652e0c6d8184d406787dda99277a2f84f38 Mon Sep 17 00:00:00 2001 From: Hao Nguyen <haon@google.com> Date: Fri, 14 Dec 2018 15:10:11 -0800 Subject: [PATCH] Make sure to add a new line at the end of XML files --- csharp/Google.Protobuf.Tools.nuspec | 2 +- csharp/src/Google.Protobuf/Google.Protobuf.csproj | 2 +- java/core/pom.xml | 2 +- java/pom.xml | 2 +- java/util/pom.xml | 2 +- protoc-artifacts/pom.xml | 2 +- update_version.py | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/csharp/Google.Protobuf.Tools.nuspec b/csharp/Google.Protobuf.Tools.nuspec index 2ed8c884b..411ee2805 100644 --- a/csharp/Google.Protobuf.Tools.nuspec +++ b/csharp/Google.Protobuf.Tools.nuspec @@ -36,4 +36,4 @@ <file src="Google.Protobuf.Tools.targets" target="buildCrossTargeting"/> <file src="Google.Protobuf.Tools.targets" target="build"/> </files> -</package> \ No newline at end of file +</package> diff --git a/csharp/src/Google.Protobuf/Google.Protobuf.csproj b/csharp/src/Google.Protobuf/Google.Protobuf.csproj index b965f4c1e..8306c7484 100644 --- a/csharp/src/Google.Protobuf/Google.Protobuf.csproj +++ b/csharp/src/Google.Protobuf/Google.Protobuf.csproj @@ -33,4 +33,4 @@ <PackageReference Include="SourceLink.Create.CommandLine" PrivateAssets="All" Version="2.7.6"/> </ItemGroup> -</Project> \ No newline at end of file +</Project> diff --git a/java/core/pom.xml b/java/core/pom.xml index 1ef06a744..f50ed6f9f 100644 --- a/java/core/pom.xml +++ b/java/core/pom.xml @@ -154,4 +154,4 @@ </plugins> </build> -</project> \ No newline at end of file +</project> diff --git a/java/pom.xml b/java/pom.xml index 7cd1e71a6..0c5b69958 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -216,4 +216,4 @@ <module>util</module> </modules> -</project> \ No newline at end of file +</project> diff --git a/java/util/pom.xml b/java/util/pom.xml index 9e8263349..57df6d2aa 100644 --- a/java/util/pom.xml +++ b/java/util/pom.xml @@ -126,4 +126,4 @@ </plugin> </plugins> </build> -</project> \ No newline at end of file +</project> diff --git a/protoc-artifacts/pom.xml b/protoc-artifacts/pom.xml index e7f3365fb..6d4fa023a 100644 --- a/protoc-artifacts/pom.xml +++ b/protoc-artifacts/pom.xml @@ -131,4 +131,4 @@ </build> </profile> </profiles> -</project> \ No newline at end of file +</project> diff --git a/update_version.py b/update_version.py index 148e62b04..fc4c15c14 100755 --- a/update_version.py +++ b/update_version.py @@ -53,6 +53,7 @@ def RewriteXml(filename, rewriter, add_xml_prefix=True): if add_xml_prefix: file_handle.write('<?xml version="1.0" encoding="UTF-8"?>\n') file_handle.write(content) + file_handle.write('\n') file_handle.close()