Browse files

Ignore leading octothorpe in link targets (for HTML-compatibility)

  • Loading branch information...
1 parent e346c44 commit 4a6c3fa0917e08fad6cdf91cbff6c23cddd711aa @jamis jamis committed Jan 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/prawn/format/effects/link.rb
View
2 lib/prawn/format/effects/link.rb
@@ -6,7 +6,7 @@ module Effects
class Link
def initialize(target, x)
- @target = target
+ @target = target.sub(/^#/, "")
@x = x
end

0 comments on commit 4a6c3fa

Please sign in to comment.