Skip to content

Commit

Permalink
Fix capture of title/alt
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber committed Mar 15, 2009
1 parent ceebbeb commit 633affd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/redcloth_scan/redcloth_inline.rb.rl
Expand Up @@ -49,7 +49,7 @@ module RedCloth
end
p -= 1
end
title = s[p + 1, s.length - 1]
title = s[p + 1, (s.length - 1) - (p + 1)]
p -= 1 if (p > 0 && s[p - 1, 1] == ' ')
if (p != 0)
regs[ref.to_sym] = s[0, p]
Expand Down

0 comments on commit 633affd

Please sign in to comment.