pdbook 0.1.7 → 0.1.8
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.
- data/lib/pdbook.rb +1 -1
- data/lib/pdbook/converter.rb +2 -3
- metadata +1 -1
    
        data/lib/pdbook.rb
    CHANGED
    
    
    
        data/lib/pdbook/converter.rb
    CHANGED
    
    | @@ -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 |  |