lib/softcover/mathjax.rb in softcover-1.1.13 vs lib/softcover/mathjax.rb in softcover-1.1.14

- old
+ new

@@ -11,15 +11,15 @@ # Call .inspect.inspect to escape the chapter # number code for interpolation. options[:chapter_number].inspect.inspect end elsif options[:chapter_number].nil? - false + '#{chapter_number}' else # chapter_number is false, i.e., it's a single page false end fn = if chapter_number - "formatNumber: function (n) { return #{chapter_number} + '.adfadsfa ' + n }" + "formatNumber: function (n) { return #{chapter_number} + '.' + n }" else "" end config = <<-EOS