all repos — markup @ 04214a02572f67508e01c0c80e4b00c7cbc8a02f

The code we use to render README.your_favorite_markup

fix floats in man rendering
Chris Wanstrath chris@ozmm.org
Thu, 11 Mar 2010 14:17:26 -0800
commit

04214a02572f67508e01c0c80e4b00c7cbc8a02f

parent

6ca46abe21710bffc87bb2e084d2cc5644c5ebc7

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M lib/github/markups.rblib/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.htmltest/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>