*** html_formatter.rb.orig Wed Jan 12 02:33:43 2005 --- html_formatter.rb.ibis Wed Jan 12 03:45:27 2005 *************** *** 50,55 **** --- 50,59 ---- MAP[:table_row_close] = '' MAP[:table_data_open] = '' MAP[:table_data_close] = '' + MAP[:div_open] = '
' # added by ibis 04/12/30 + MAP[:div_close] = '
' # added by ibis 04/12/30 + MAP[:pre_open2] = '
'   # added by ibis  05/01/11
+     MAP[:pre_close2]            = '
' # added by ibis 05/01/11 def initialize( s, db, plugin, suffix = 'l') @tokens = s *************** *** 128,133 **** --- 132,149 ---- if not pre and toc_level > 0 toc_title << t[:s] end + ########### + # from this line added by ibis 04/12/30 + when :div_open + if t[:c] == "" + html << "
" + else + html << "
" + end + when :div_close + html << "#{MAP[t[:e]]}" + # to this line added by ibis 04/12/30 + ########### when :reference html << @plugin.make_anchor( t[:href], t[:s].escapeHTML ) toc_title << t[:s] if toc_level > 0 *************** *** 176,188 **** end end else ! if t[:e] == :pre_open pre = true ! elsif t[:e] == :pre_close pre = false end ! html << "#{MAP[t[:e]]}" if [:emphasis_close, :strong_close, :delete_close].index(t[:e]) == nil and /_close\z/ =~ t[:e].to_s html << "\n" --- 192,218 ---- end end else ! # changed by ibis 05/01/11 ! if ( t[:e] == :pre_open ) || ( t[:e] == :pre_open2 ) pre = true ! # changed by ibis 05/01/11 ! elsif ( t[:e] == :pre_close ) || ( t[:e] == :pre_close2 ) pre = false end ! ########### ! # from this line added by ibis 04/12/30 - 05/01/11 ! if t[:e] == :pre_open2 then ! if t[:c] == "" ! html << "
"
!             else
!               html << "
"
!             end
!           else
!             html << "#{MAP[t[:e]]}"
!           end
! # to this line  added by ibis  04/12/30 - 05/01/11
! ###########
            if [:emphasis_close, :strong_close, :delete_close].index(t[:e]) == nil and
              /_close\z/ =~ t[:e].to_s
              html <<  "\n"