diff --git a/lib/squib/graphics/text.rb b/lib/squib/graphics/text.rb index adaa15c..3ace5af 100644 --- a/lib/squib/graphics/text.rb +++ b/lib/squib/graphics/text.rb @@ -110,7 +110,7 @@ module Squib rule = embed.rules[key] spacing = rule[:width] * Pango::SCALE index = clean_str.index(key) - str.sub!(key, "aaa") + str.sub!(key, "aaa") layout.markup = str clean_str = layout.text searches << { index: index, rule: rule }