diff --git a/csharp/Google.Protobuf.Tools.nuspec b/csharp/Google.Protobuf.Tools.nuspec
index 2ed8c884bc..411ee28058 100644
--- a/csharp/Google.Protobuf.Tools.nuspec
+++ b/csharp/Google.Protobuf.Tools.nuspec
@@ -36,4 +36,4 @@
-
\ No newline at end of file
+
diff --git a/csharp/src/Google.Protobuf/Google.Protobuf.csproj b/csharp/src/Google.Protobuf/Google.Protobuf.csproj
index b965f4c1ea..8306c7484e 100644
--- a/csharp/src/Google.Protobuf/Google.Protobuf.csproj
+++ b/csharp/src/Google.Protobuf/Google.Protobuf.csproj
@@ -33,4 +33,4 @@
-
\ No newline at end of file
+
diff --git a/java/core/pom.xml b/java/core/pom.xml
index 1ef06a7445..f50ed6f9fb 100644
--- a/java/core/pom.xml
+++ b/java/core/pom.xml
@@ -154,4 +154,4 @@
-
\ No newline at end of file
+
diff --git a/java/pom.xml b/java/pom.xml
index 7cd1e71a69..0c5b699583 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -216,4 +216,4 @@
util
-
\ No newline at end of file
+
diff --git a/java/util/pom.xml b/java/util/pom.xml
index 9e82633495..57df6d2aaf 100644
--- a/java/util/pom.xml
+++ b/java/util/pom.xml
@@ -126,4 +126,4 @@
-
\ No newline at end of file
+
diff --git a/protoc-artifacts/pom.xml b/protoc-artifacts/pom.xml
index e7f3365fb0..6d4fa023ad 100644
--- a/protoc-artifacts/pom.xml
+++ b/protoc-artifacts/pom.xml
@@ -131,4 +131,4 @@
-
\ No newline at end of file
+
diff --git a/update_version.py b/update_version.py
index 148e62b04f..fc4c15c14b 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('\n')
file_handle.write(content)
+ file_handle.write('\n')
file_handle.close()