lib/review/textutils.rb in review-4.1.0 vs lib/review/textutils.rb in review-4.2.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2008-2019 Minero Aoki, Kenshi Muto, Masayoshi Takahashi,
+# Copyright (c) 2008-2020 Minero Aoki, Kenshi Muto, Masayoshi Takahashi,
# KADO Masanori
# 2002-2007 Minero Aoki
#
# This program is free software.
# You can distribute or modify this program under the terms of
@@ -96,12 +96,11 @@
lines.join
end
def defer_math_image(str, path, key)
# for Re:VIEW >3
- File.open(File.join(File.dirname(path), '__IMGMATH_BODY__.tex'), 'a+') do |f|
+ File.open(File.join(File.dirname(path), "__IMGMATH_BODY__#{key}.tex"), 'w') do |f|
f.puts str
- f.puts '\\clearpage'
end
File.open(File.join(File.dirname(path), '__IMGMATH_BODY__.map'), 'a+') do |f|
f.puts key
end
end