8000 Speed up HTML encoder for 1.2 by korny · Pull Request #153 · rubychan/coderay · GitHub
[go: up one dir, main page]

Skip to content

Speed up HTML encoder for 1.2 #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into possible-speedups
Conflicts:
	lib/coderay/encoders/html.rb
  • Loading branch information
korny committed Dec 18, 2014
commit 7aa6ea080d05b7e6a70b076b25f37b72fd7669ad
2 changes: 1 addition & 1 deletion lib/coderay/encoders/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def make_escape_cache options
if options[:tab_width] == DEFAULT_OPTIONS[:tab_width]
HTML_ESCAPE
else
HTML_ESCAPE.merge("\t" => ' ' * options[:tab_width])
HTML_ESCAPE.merge("\t" => options[:tab_width] ? ' ' * options[:tab_width] : "\t")
end

Hash.new do |cache, text|
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0