Skip to content

Commit 1cc19fa

Browse files
author
Masamitsu Ogura
committed
fix: when PDF export options were included in @convert_to
1 parent 05ce17c commit 1cc19fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)