Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Add the "plain" css class for plain text files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kreeftmeijer committed Jul 25, 2011
1 parent 1fc0fc4 commit 7fcffcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/gust.rb
Expand Up @@ -39,7 +39,7 @@ def textile(markup)
end

def plain_text(text)
"<div class=\"highlight\"><pre>#{text}</pre></div>\n"
"<div class=\"highlight plain\"><pre>#{text}</pre></div>\n"
end

def inline_highlight(html)
Expand Down
4 changes: 2 additions & 2 deletions spec/gust_spec.rb
Expand Up @@ -15,15 +15,15 @@

subject { Gust.parse('foo') }

it { should == "<div class=\"highlight\"><pre>foo</pre></div>\n" }
it { should == "<div class=\"highlight plain\"><pre>foo</pre></div>\n" }

end

context 'with an unknown filename' do

subject { Gust.parse('foo', :filename => 'foo.bar') }

it { should == "<div class=\"highlight\"><pre>foo</pre></div>\n" }
it { should == "<div class=\"highlight plain\"><pre>foo</pre></div>\n" }

end

Expand Down

0 comments on commit 7fcffcc

Please sign in to comment.