diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-16 01:01:12 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-16 01:01:12 +0200 |
commit | cb41b00d5673312f4982e914883f9cea95f2ccae (patch) | |
tree | fea5059b331244efd4400e36e5ba288a5a0bddc1 /lib/coderay/encoders | |
parent | 8e67efef5b412b16d755fb47538e24a2b6bafce0 (diff) | |
download | coderay-cb41b00d5673312f4982e914883f9cea95f2ccae.tar.gz |
cleanup TODOs, FIXMEs
Diffstat (limited to 'lib/coderay/encoders')
-rw-r--r-- | lib/coderay/encoders/html/numbering.rb | 2 | ||||
-rw-r--r-- | lib/coderay/encoders/statistic.rb | 1 |
2 files changed, 1 insertions, 2 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 diff --git a/lib/coderay/encoders/statistic.rb b/lib/coderay/encoders/statistic.rb index 2315d9e..b2f8b83 100644 --- a/lib/coderay/encoders/statistic.rb +++ b/lib/coderay/encoders/statistic.rb @@ -67,7 +67,6 @@ Token Types (%d): @type_stats['TOTAL'].count += 1 end - # TODO Hierarchy handling def begin_group kind block_token ':begin_group', kind end |