summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2024-02-19 15:09:53 -0700
committerGitHub <noreply@github.com>2024-02-19 15:09:53 -0700
commitf66e2ce882631452f3fcd93cc95130db2a380439 (patch)
tree638d1e1f53bb6b74854059eaf4ca6a7085556a09 /lib
parent38f464f498848ddab6d11ed27dcfd710e4a242ee (diff)
resolves #4550 turn off system-dependent newline conversion when writing files (PR #4551)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb
index 386b90c4..aa19583d 100644
--- a/lib/asciidoctor.rb
+++ b/lib/asciidoctor.rb
@@ -216,7 +216,7 @@ module Asciidoctor
URI_READ_MODE = FILE_READ_MODE
# The mode to use when opening a file for writing
- FILE_WRITE_MODE = RUBY_ENGINE_OPAL ? 'w' : 'w:utf-8'
+ FILE_WRITE_MODE = RUBY_ENGINE_OPAL ? 'w' : 'wb:utf-8'
# The default document type
# Can influence markup generated by the converters