lib/csl/style.rb in csl-1.3.1 vs lib/csl/style.rb in csl-1.3.2
- old
+ new
@@ -143,10 +143,11 @@
def preamble
Schema.preamble.dup
end
def load_related_style_from(uri)
- # TODO try local first
+ Style.load(File.basename(uri))
+ rescue CSL::ParseError
Style.load(uri)
end
def added_macro(node)
unless node.attribute?(:name)