ansi_sgr_to_html 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/ansi_sgr_to_html.rb +2 -2
  2. metadata +2 -2
@@ -410,10 +410,10 @@ when 26 then
410
410
  @cur_css.delete('background-color'); end
411
411
  when 27 then
412
412
  begin
413
- if( i[p].ord == 0x30) then @cur_css.delete('font-family'); else @cur_css['font-family'] = @font_styles[ i[p].ord-0x30]; end; end
413
+ if( i[p].ord == 0x30) then @cur_css.delete('font-family'); else @cur_css['font-family'] = @font_styles[( i[p].ord-0x30)-1]; end; end
414
414
  when 28 then
415
415
  begin
416
- @cur_css['font-family'] = @font_styles[10] end
416
+ @cur_css['font-family'] = @font_styles[9] end
417
417
  when 29 then
418
418
  begin
419
419
  @cur_css = {}; @curcol = @locol end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansi_sgr_to_html
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 1.8.29
46
+ rubygems_version: 1.8.30
47
47
  signing_key:
48
48
  specification_version: 3
49
49
  summary: Converts strings with ANSI SGR codes to HTML