Skip to content

Commit

Permalink
use character equality
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Oct 28, 2012
1 parent 4d404e3 commit 096a687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/creole/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def end_paragraph

def start_paragraph
if @p
@out << ' ' if @out[-1,1] != ' '
@out << ' ' if @out[-1] != ?\s
else
end_paragraph
start_tag('p')
Expand Down Expand Up @@ -247,7 +247,7 @@ def parse_inline(str)
when /\A([:alpha:]|[:digit:])+/
@out << $&
when /\A\s+/
@out << ' ' if @out[-1,1] != ' '
@out << ' ' if @out[-1] != ?\s
when /\A\*\*/
toggle_tag 'strong', $&
when /\A\/\//
Expand Down

0 comments on commit 096a687

Please sign in to comment.