hlt 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hlt.rb +1 -1
- metadata +1 -1
data/lib/hlt.rb
CHANGED
@@ -13,7 +13,7 @@ class Hlt
|
|
13
13
|
s2 = s.gsub(/\n\[[^\]]+\]\n/, " !CODE\n")
|
14
14
|
raw_html = LineTree.new(s2).to_xml
|
15
15
|
html = raw_html.gsub('!CODE').with_index do |x,i|
|
16
|
-
"\n" + a[i].lines.map{|x| ' ' * 4
|
16
|
+
"\n" + a[i].lines.map{|x| "\n%s%s\n" * [' ' * 4,x]}.join
|
17
17
|
end
|
18
18
|
@to_html = Rexle.new(html).xml pretty: true
|
19
19
|
end
|