Skip to content

Commit 1def716

Browse files
author
Masamitsu Ogura
committed
fix: when PDF Text Options were included in @convert_to
1 parent 05ce17c commit 1def716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libreconv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def escaped_source_path
113113

114114
# @return [String]
115115
def target_filename
116-
File.basename(escaped_source_path, '.*') + '.' + File.basename(@convert_to, ':*')
116+
File.basename(escaped_source_path, '.*') + '.' + File.basename(@convert_to.split(':').first)
117117
end
118118

119119
# @raise [IOError] If soffice headless command line tool not found.

0 commit comments

Comments
 (0)