fix floats in man rendering
Chris Wanstrath chris@ozmm.org
Thu, 11 Mar 2010 14:17:26 -0800
2 files changed,
4 insertions(+),
4 deletions(-)
M
lib/github/markups.rb
→
lib/github/markups.rb
@@ -43,11 +43,11 @@ # make MUSTACHE(1)
title = "#{name}(#{section})" # Classy divs. - left = "<div float='left'>#{title}</div>" - right = "<div float='right'>#{title}</div>" + left = "<div style='float:left'>#{title}</div>" + right = "<div style='float:right'>#{title}</div>" end if rendered =~ /<body>\s*(.+)\s*<\/body>/mi - $1.gsub(/<hr>/, '').gsub(/(<h1.+?h1>)/, "<div>#{left}\\1#{right}</div>") + $1.gsub(/<hr>/, '').gsub(/(<h1.+?h1>)/, "#{left}#{right}\\1") end end
M
test/markups/README.1.html
→
test/markups/README.1.html
@@ -1,4 +1,4 @@
-<div><div float='left'>MUSTACHE(1)</div><h1 align=center>MUSTACHE</h1><div float='right'>MUSTACHE(1)</div></div> +<div style='float:left'>MUSTACHE(1)</div><div style='float:right'>MUSTACHE(1)</div><h1 align=center>MUSTACHE</h1>