Skip to content

Commit 82fdb13

Browse files
committed
use :plain for unknown output file types
1 parent 711ce4b commit 82fdb13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/coderay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ when 'highlight', nil
125125
end
126126

127127
if output_file
128-
output_format ||= CodeRay::FileType[output_file]
128+
output_format ||= CodeRay::FileType[output_file] || :plain
129129
else
130130
output_format ||= :terminal
131131
end

0 commit comments

Comments
 (0)