1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: fix patch for data files
as they are installed under /usr/share/ruby-kramdown-rfc2629
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2018-08-19
--- a/bin/kramdown-rfc2629
+++ b/bin/kramdown-rfc2629
@@ -223,7 +223,7 @@
end
end
- erbfilename = File.expand_path '../../data/kramdown-rfc2629.erb', __FILE__
+ erbfilename = '/usr/share/ruby-kramdown-rfc2629/kramdown-rfc2629.erb'
erbfile = File.read(erbfilename, coding: "UTF-8")
erb = ERB.new(erbfile, nil, '-')
# remove redundant nomarkdown pop outs/pop ins as they confuse kramdown
@@ -265,7 +265,7 @@
end
def read_encodings
- encfilename = File.expand_path '../../data/encoding-fallbacks.txt', __FILE__
+ encfilename = File.expand_path '/usr/share/ruby-kramdown-rfc2629/encoding-fallbacks.txt', __FILE__
encfile = File.read(encfilename, coding: "UTF-8")
Hash[encfile.lines.map{|l|
l.chomp!;
|