diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2012-09-01 18:33:02 -0700 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2012-09-01 18:33:02 -0700 |
commit | 5f54b367d9161a3c5ac30dcc70bd8de5dc378167 (patch) | |
tree | 309c65589185050ecdc39f07ae926679c27a928a | |
parent | 9ede776bc89e90ea6689f9690ae130b16d20493c (diff) | |
parent | c9d6e77ab9cbc9cf001ab370d4da8a7ec8f77a8d (diff) | |
download | coderay-5f54b367d9161a3c5ac30dcc70bd8de5dc378167.tar.gz |
Merge pull request #32 from shurizzle/master
Update html numbering
-rw-r--r-- | lib/coderay/encoders/html/numbering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html/numbering.rb b/lib/coderay/encoders/html/numbering.rb index 8bc6259..e717429 100644 --- a/lib/coderay/encoders/html/numbering.rb +++ b/lib/coderay/encoders/html/numbering.rb @@ -17,7 +17,7 @@ module Encoders anchor_prefix = options[:line_number_anchors] anchor_prefix = 'line' if anchor_prefix == true - anchor_prefix = anchor_prefix.to_s[/\w+/] if anchor_prefix + anchor_prefix = anchor_prefix.to_s[/[\w-]+/] if anchor_prefix anchoring = if anchor_prefix proc do |line| |