<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,5 @@
 require 'rubygems'
 require 'discount'
-# require &quot;ruby-debug&quot;
-# require 'coderay'
-# require &quot;script/tm_syntax_highlighting&quot;
 require &quot;uv&quot;
 
 desc 'Transforma o arquivo em HTML'
@@ -13,96 +10,12 @@ task :html =&gt; :merge do
 
     File.open('output/index.html', 'w') do |f|
       html_template = File.new(&quot;layout/pdf_template.html&quot;).read
-      # html_template = Uv.parse( html_template, &quot;xhtml&quot;, &quot;ruby&quot;, false, &quot;mac_classic&quot;)
-      
       html_template.gsub!(&quot;#body&quot;, output)
-      
       html_template.gsub! /&lt;pre&gt;&lt;code&gt;.*?&lt;\/code&gt;&lt;\/pre&gt;/m do |code|
         code = code.gsub('&lt;pre&gt;&lt;code&gt;', '').gsub('&lt;/code&gt;&lt;/pre&gt;', '').gsub('&amp;lt;', '&lt;').gsub('&amp;gt;', '&gt;').gsub('&amp;amp;', '&amp;')
         Uv.parse(code, &quot;xhtml&quot;, &quot;ruby&quot;, false, &quot;mac_classic&quot;)
       end
-      
-      # debugger
-      #       html_template.gsub!(&quot;&lt;pre&gt;&lt;code&gt;&quot;, &quot;&lt;pre name=\&quot;code\&quot; class=\&quot;ruby\&quot;&gt;&quot;)
-      #       html_template.gsub!(&quot;&lt;/code&gt;&quot;, &quot;&quot;)
       f.puts html_template
     end
   end
-end
-
-# class RedCloth
-#   ##
-#   # Take a block starting with ruby. and add proper tags for styling.
-#   #
-#   #   ruby. my_code.rb
-#   def textile_ruby(tag, atts, cite, content)
-#     # %(&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;#{content}&lt;/pre&gt;&lt;/code&gt;)
-#     ret = if content =~ /#(.+)/
-#       tag = $1
-#       file_name = content.gsub(&quot;##{tag}&quot;, '')
-# 
-#       tmp, find_end = '', false
-#       File.new(&quot;code/#{file_name}&quot;).readlines.each do |line|
-#         unless find_end
-#           find_end = true if line =~ /BEGIN #{tag}/
-#         else
-#           break if line =~ /END #{tag}/
-#           tmp += line
-#         end
-#       end
-#       CodeRay.scan(tmp, :ruby).html.div
-#     else
-#       code_file = File.new(&quot;code/#{content}&quot;).read
-#       CodeRay.scan(code_file, :ruby).html.div
-#     end
-# 
-#     ret.gsub! '&amp;quot;', '&quot;'
-#     ret.gsub  '&amp;gt;'  , '&gt;'
-#   end
-# 
-#   ##
-#   # Take a block starting with ruby. and add proper tags for styling.
-#   #
-#   #   html. my_code.rb
-#   def textile_html(tag, atts, cite, content)
-#     ret = if content =~ /#(.+)/
-#       tag = $1
-#       file_name = content.gsub(&quot;##{tag}&quot;, '')
-# 
-#       tmp, find_end = '', false
-#       File.new(&quot;code/#{file_name}&quot;).readlines.each do |line|
-#         unless find_end
-#           find_end = true if line =~ /BEGIN #{tag}/
-#         else
-#           break if line =~ /END #{tag}/
-#           tmp += line
-#         end
-#       end
-#       CodeRay.scan(tmp, :html).html.div
-#     else
-#       code_file = File.new(&quot;code/#{content}&quot;).read
-#       CodeRay.scan(code_file, :html).html.div
-#     end
-# 
-#     ret.gsub! '&amp;quot;', '&quot;'
-#     # ret.gsub! '&amp;lt;p&amp;gt;'  , '|p|'
-#     # ret.gsub! '&amp;lt;/p&amp;gt;'  , '[/p|'
-#     # ret.gsub! '&amp;lt;'  , '&amp;#60;'
-#     # ret.gsub! '&amp;gt;'  , '&amp;#60;'
-#     # ret.gsub  '&amp;amp;', '&amp;'
-#     # ret.gsub '&amp;amp;', '&amp;'
-#     # ret.gsub! '&lt;p&gt;', '&lt;code&gt;&lt;p&gt;&lt;/code&gt;'
-#     ret.gsub! '&lt;', '&amp;lt;'
-#     ret.gsub! '&gt;', '&amp;gt;'
-#     # &quot;&lt;pre&gt;&lt;code&gt;#{ret}&lt;/code&gt;&lt;/pre&gt;&quot;
-#     ret
-#   end
-# 
-#   ##
-#   # Standard code block.
-#   #
-#   #   code. git-svn clone foo
-#   def textile_code(tag, atts, cite, content)
-#     %(&lt;pre&gt;&lt;code&gt;#{content}&lt;/pre&gt;&lt;/code&gt;)
-#   end
-# end
+end
\ No newline at end of file</diff>
      <filename>script/html.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2fe9b3f9029805242b61c097a1bd31c7bb0e4042</id>
    </parent>
  </parents>
  <author>
    <name>Tapaj&#243;s</name>
    <email>tapajos@gmail.com</email>
  </author>
  <url>http://github.com/carlosbrando/rails21-book/commit/d33a1f12d0943dd9d0fb3cbe0a309491e97fc05b</url>
  <id>d33a1f12d0943dd9d0fb3cbe0a309491e97fc05b</id>
  <committed-date>2008-06-06T10:11:55-07:00</committed-date>
  <authored-date>2008-06-06T10:11:55-07:00</authored-date>
  <message>Removendo coment&#225;rios para ficar mais limpo.</message>
  <tree>0992ff697bea7125e9db4e0cda42ce02e6dee643</tree>
  <committer>
    <name>Tapaj&#243;s</name>
    <email>tapajos@gmail.com</email>
  </committer>
</commit>
