From c8688b5eadc44a158c30cf615a5d64619a776a95 Mon Sep 17 00:00:00 2001 From: Andre Meij Date: Wed, 11 Jun 2014 20:23:04 +0200 Subject: [PATCH] remove icon-font-path variable Remove icon-font-path variable for rails compatibility, the font-path is set by bootstrap-rails already --- converter | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/converter b/converter index 69954eb..24b8074 100755 --- a/converter +++ b/converter @@ -108,6 +108,14 @@ rewrite_image_paths = lambda do |line, _| end end +remove_icon_font_path = lambda do |line, _| + if line =~ /^\s*\$icon-font-path/ + "" + else + line + end +end + mark_variables_default = lambda do |line, _| if line =~ /^\s*\$/ && line.include?(':') line.sub(';', ' !default;') @@ -134,6 +142,7 @@ line_processors = [ if File.basename(src_file_path) =~ /variables/ line_processors += [ rewrite_image_paths, + remove_icon_font_path, mark_variables_default ] end