strip the index comments in POD
Chris Wanstrath chris@ozmm.org
Mon, 02 Nov 2009 18:02:40 -0800
2 files changed,
3 insertions(+),
3 deletions(-)
M
lib/github/markups.rb
→
lib/github/markups.rb
@@ -23,6 +23,6 @@ command("/usr/bin/env pod2html", /pod/) do |rendered|
if rendered =~ /<body.+?>\s*(.+)\s*<\/body>/mi `rm pod2htmd.tmp` if File.exists?('pod2htmd.tmp') rescue nil `rm pod2htmi.tmp` if File.exists?('pod2htmi.tmp') rescue nil - $1 + $1.sub('<!-- INDEX BEGIN -->', '').sub('<!-- INDEX END -->', '') end end
M
test/markups/README.pod.html
→
test/markups/README.pod.html
@@ -1,4 +1,4 @@
-<!-- INDEX BEGIN --> + <div name="index"> <p><a name="__index__"></a></p>@@ -27,7 +27,7 @@ </ul>
<hr name="index" /> </div> -<!-- INDEX END --> + <p> </p>