hlt 0.1.5 → 0.1.6
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| "
|
16
|
+
"\n\n" + a[i].lines.map{|x| "%s%s\ % [' ' * 4,x]}.join + "\n"
|
17
17
|
end
|
18
18
|
@to_html = Rexle.new(html).xml pretty: true
|
19
19
|
end
|