Navigation Menu

Skip to content

Commit

Permalink
fixed whitespace bug in syntax highlighters
Browse files Browse the repository at this point in the history
  • Loading branch information
TwP committed Mar 11, 2008
1 parent 1fdd308 commit 5a86225
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion History.txt
@@ -1,7 +1,9 @@
== 0.8.2 / 2008-03-

* 1 bug fix
* 2 bug fixes
- Fixed an error when paginating on an index page
- Fixed an error where leading and trailing whitespace was being
stripped from syntax highlighted code blocks

== 0.8.1 / 2008-03-09

Expand Down
6 changes: 5 additions & 1 deletion examples/webby/content/tips_and_tricks/index.txt
Expand Up @@ -21,7 +21,9 @@ Let's assume that your website has a collection of articles in a folder called "
<pre>
---
title: Articles
filter: erb
filter:
- erb
- textile
---
h2. <%= h(@page.title) %>

Expand All @@ -30,7 +32,9 @@ h2. <%= h(@page.title) %>
:sort_by => "mtime", :reverse => true)
paginate(articles, 10) do |page|
%>
<notextile>
<%= page.render %>
</notextile>
<hr />
<% end %>

Expand Down
2 changes: 1 addition & 1 deletion lib/webby/helpers/coderay_helper.rb
Expand Up @@ -37,7 +37,7 @@ def coderay( *args, &block )
pos = buffer.length
block.call(*args)

text = buffer[pos..-1].strip
text = buffer[pos..-1]
if text.empty?
buffer[pos..-1] = ''
return
Expand Down
2 changes: 1 addition & 1 deletion lib/webby/helpers/ultraviolet_helper.rb
Expand Up @@ -41,7 +41,7 @@ def uv( *args, &block )
pos = buffer.length
block.call(*args)

text = buffer[pos..-1].strip
text = buffer[pos..-1]
if text.empty?
buffer[pos..-1] = ''
return
Expand Down

0 comments on commit 5a86225

Please sign in to comment.