lib/asciidoctor/csd/converter.rb in asciidoctor-csd-0.2.8 vs lib/asciidoctor/csd/converter.rb in asciidoctor-csd-0.3.1
- old
+ new
@@ -74,10 +74,12 @@
result = ["<?xml version='1.0' encoding='UTF-8'?>\n<csd-standard>"]
@draft = node.attributes.has_key?("draft")
result << noko { |ixml| front node, ixml }
result << noko { |ixml| middle node, ixml }
result << "</csd-standard>"
+ save_cache_biblio(@bibliodb, true)
+ save_cache_biblio(@local_bibliodb, false)
result = textcleanup(result.flatten * "\n")
ret1 = cleanup(Nokogiri::XML(result))
validate(ret1)
ret1.root.add_namespace(nil, CSD_NAMESPACE)
ret1
@@ -88,9 +90,14 @@
unless %w{presentation code proposal standard report}.include? d
warn "#{d} is not a legal document type: reverting to 'standard'"
d = "standard"
end
d
+ end
+
+ # deactivating biblio caching for now
+ def open_cache_biblio(node, global)
+ nil
end
def pdf_convert(filename)
url = "#{Dir.pwd}/#{filename}.html"
pdfjs = File.join(File.dirname(__FILE__), 'pdf.js')