diff --git a/chocolatey/README.adoc b/chocolatey/README.adoc
index 78372fc3c..47626a44d 100644
--- a/chocolatey/README.adoc
+++ b/chocolatey/README.adoc
@@ -12,6 +12,16 @@ https://chocolatey.org/docs/create-packages .
. Set the desired package version in 'asciidoctorj.nuspec' and
'tools\chocolateyinstall.ps1'.
+. Commit your changes.
+
+. Chocolatey doesn't like whitespace in its packaging files. In PowerShell, run the following from the current directory:
+
+----
+foreach ($f in @('tools\chocolateyinstall.ps1', 'tools\chocolateyinstall.ps1')) {
+ gc $f | ? {$_ -notmatch "^\s*#"} | % {$_ -replace '(^.*?)\s*?[^``]#.*','$1'} | Out-File $f+".~" -en utf8; mv -fo $f+".~" $f
+}
+----
+
. Run the following commands:
----
@@ -30,3 +40,9 @@ https://chocolatey.org/docs/create-packages .
# Push the package to chocolatey.org.
> choco push --api-key=your-api-key asciidoctorj.x.y.z.nupkg
----
+
+. Add back whitespace:
+
+----
+git checkout -- tools
+----
\ No newline at end of file
diff --git a/chocolatey/asciidoctorj.nuspec b/chocolatey/asciidoctorj.nuspec
index 48c063314..51570c40d 100644
--- a/chocolatey/asciidoctorj.nuspec
+++ b/chocolatey/asciidoctorj.nuspec
@@ -5,7 +5,7 @@