pdbook 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/pdbook.rb +1 -1
  2. data/lib/pdbook/converter.rb +2 -3
  3. metadata +1 -1
@@ -4,5 +4,5 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'pdbook/converter'
5
5
 
6
6
  module Pdbook
7
- VERSION = '0.1.7'
7
+ VERSION = '0.1.8'
8
8
  end
@@ -73,7 +73,7 @@ module Pdbook
73
73
  # print toc
74
74
  unless toc.nil?
75
75
  doc.text_options.update(:wrap => :character, :size => @options[:font_size], :spacing => @options[:spacing])
76
- toc = toc.split("\e")
76
+ toc = cleanup_content_text(toc).split("\e")
77
77
  section_cnt = toc.shift.to_i
78
78
  if section_cnt == toc.size
79
79
  @log.debug "Print TOC"
@@ -114,8 +114,7 @@ module Pdbook
114
114
  text.gsub!('︹', '〔')
115
115
  text.gsub!('︺', '〕')
116
116
  text.gsub!('︻', '【')
117
- text.gsub!('︼', '】')
118
-
117
+ text.gsub!('︼', '】')
119
118
  text
120
119
  end
121
120
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Chong