Skip to content

Commit

Permalink
Merge pull request #116 from aozorahack/add-test-bin
Browse files Browse the repository at this point in the history
add test for CLI command `aozora2html`
  • Loading branch information
takahashim authored Feb 2, 2024
2 parents 3ec075f + 00134be commit b2fd9b3
Show file tree
Hide file tree
Showing 4 changed files with 2,211 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aozora2html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def initialize(input, output, gaiji_dir: nil, css_files: nil)
@out = if output.respond_to?(:print) ## writable IO?
output
else
File.open(output, 'w')
File.open(output, 'wb')
end
@gaiji_dir = gaiji_dir || '../../../gaiji/'
@css_files = css_files || ['../../aozora.css']
Expand Down
Loading

0 comments on commit b2fd9b3

Please sign in to comment.