summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-10-16 23:55:37 -0600
committerGitHub <noreply@github.com>2020-10-16 23:55:37 -0600
commitdf461f9510cdbe9afd392a6cb97d97c07ebdf477 (patch)
tree99e5a3680e3aa03710529b9bd540211f72b27c4c /lib
parenta516e684d5de1e9835ce7563c99c934e43b902bd (diff)
resolves #3778 fix resolved value of :to_dir when both :to_file and :to_dir options are set to absolute paths (PR #3781)
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/convert.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor/convert.rb b/lib/asciidoctor/convert.rb
index 39feee6b..e8d00783 100644
--- a/lib/asciidoctor/convert.rb
+++ b/lib/asciidoctor/convert.rb
@@ -63,7 +63,7 @@ module Asciidoctor
elsif write_to_target
if to_dir
if to_file
- options[:to_dir] = ::File.dirname ::File.expand_path ::File.join to_dir, to_file
+ options[:to_dir] = ::File.dirname ::File.expand_path to_file, to_dir
else
options[:to_dir] = ::File.expand_path to_dir
end