coloration 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
data/lib/coloration/version.rb
CHANGED
@@ -128,8 +128,8 @@ module Coloration
|
|
128
128
|
style ||= @default_style
|
129
129
|
# normal,selected,bold,italic,strike,underline,bg,bg_selected,---
|
130
130
|
s = []
|
131
|
-
s << style.foreground.html.gsub('#', '')
|
132
|
-
s << style.foreground.html.gsub('#', '')
|
131
|
+
s << (style.foreground || @default_style.foreground).html.gsub('#', '')
|
132
|
+
s << (style.foreground || @default_style.foreground).html.gsub('#', '')
|
133
133
|
s << style.bold.to_i
|
134
134
|
s << style.italic.to_i
|
135
135
|
s << style.strike.to_i
|