summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/html
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-16 01:01:12 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-16 01:01:12 +0200
commitcb41b00d5673312f4982e914883f9cea95f2ccae (patch)
treefea5059b331244efd4400e36e5ba288a5a0bddc1 /lib/coderay/encoders/html
parent8e67efef5b412b16d755fb47538e24a2b6bafce0 (diff)
downloadcoderay-cb41b00d5673312f4982e914883f9cea95f2ccae.tar.gz
cleanup TODOs, FIXMEs
Diffstat (limited to 'lib/coderay/encoders/html')
-rw-r--r--lib/coderay/encoders/html/numbering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoders/html/numbering.rb b/lib/coderay/encoders/html/numbering.rb
index 332145b..5908bf0 100644
--- a/lib/coderay/encoders/html/numbering.rb
+++ b/lib/coderay/encoders/html/numbering.rb
@@ -75,7 +75,7 @@ module Encoders
line_number = start
output.gsub!(/^.*$\n?/) do |line|
line_number_text = bolding.call line_number
- indent = ' ' * (max_width - line_number.to_s.size) # TODO: Optimize (10^x)
+ indent = ' ' * (max_width - line_number.to_s.size)
line_number += 1
"<span class=\"line-numbers\">#{indent}#{line_number_text}</span>#{line}"
end