]> granicus.if.org Git - docbook-dsssl/commitdiff
Only copy images once for the DocBook to EPUB tool to correct Windows bug reported...
authorKeith Fahlgren <abdelazer@users.sourceforge.net>
Mon, 13 Sep 2010 21:59:14 +0000 (21:59 +0000)
committerKeith Fahlgren <abdelazer@users.sourceforge.net>
Mon, 13 Sep 2010 21:59:14 +0000 (21:59 +0000)
xsl/epub/bin/dbtoepub
xsl/epub/bin/lib/docbook.rb

index b9239d110be40a40794aabf10605918c4f8bc87f..01b53751a2dcfb33aa681a1425c00ecb7cced8da 100755 (executable)
@@ -33,6 +33,8 @@ otf_files = []
 customization_layer = nil
 output_file = nil
 
+$DEBUG=true
+
 # Set up the OptionParser
 opts = OptionParser.new
 opts.banner = "Usage: #{File.basename($0)} [OPTIONS] [DocBook Files]
index 430662e54b5e11463538eb2391d8d8a5a8987f82..14110d60b49d1eaed8d107fc91107a958f993c34 100755 (executable)
@@ -209,7 +209,7 @@ module DocBook
           image_refs << el[1]['fileref'] 
         end  
       end
-      return image_refs
+      return image_refs.uniq
     end  
 
     # Returns true if the document has code callouts