hlt 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/hlt.rb +1 -1
  2. 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| "\n%s%s\n" % [' ' * 4,x]}.join
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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hlt
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.1.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson