Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed incorrect path for added external files in OPF (Christian Stein…
…ert);

minor exception handling fixes
  • Loading branch information
Dmitri Goutnik committed Jul 18, 2009
1 parent 54f12c8 commit a34ebb8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 7 additions & 1 deletion History.txt
@@ -1,9 +1,15 @@
== 0.3.5 / 2009-07-18

* Bug fixes

* Fixed incorrect path for added external files in OPF (Christian Steinert)

== 0.3.4 / 2009-07-17

* Bug fixes

* Pre- and post processing filters moved to separate modules.
* Non-conformant element IDs are now fixed automaticly
* Non-conformant element IDs are now fixed automatically
* Regardless of the source settings, doctype now is always set to XHTML 1.0 Transitional
* -F (disable fixups) option removed, fixups are always on
* Documentation updates
Expand Down
4 changes: 3 additions & 1 deletion lib/repub/app.rb
Expand Up @@ -39,7 +39,9 @@ def run(args)

Launchy::Browser.run(builder.document_path) if options[:browser]

rescue RuntimeError => ex
# rescue RuntimeError => ex
# log.fatal "** ERROR: #{ex.to_s}"
rescue Exception => ex
log.fatal "** ERROR: #{ex.to_s}"
end

Expand Down
2 changes: 1 addition & 1 deletion lib/repub/app/builder.rb
Expand Up @@ -118,7 +118,7 @@ def copy_and_process_assets
@options[:add].each do |file|
log.debug "-- Copying external file #{file}"
FileUtils.cp(file, '.')
@opf << file
@opf << File.basename(file)
end if @options[:add]
end

Expand Down
2 changes: 1 addition & 1 deletion lib/repub/app/logger.rb
Expand Up @@ -36,7 +36,7 @@ def error(msg)

def fatal(msg)
error(msg)
exit 1
exit! 1
end

private
Expand Down

0 comments on commit a34ebb8

Please sign in to comment.