Skip to content
Browse files

forgot "\" for "\s" in regexp

  • Loading branch information...
1 parent 6e165bc commit 6e1eb991cdb413223f481632b0ef9ee533e282f3 @th-we committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 seps2svg.rb
View
4 seps2svg.rb
@@ -365,10 +365,12 @@ def write_unicode_glyph(ps_glyph_code)
else
x,y,m,save,cx,cy,char,ax = line.split
cx = cx.to_f
+ p cx
ax = ax.to_f
string.scan(/\s+|[^\s]+/) { |substring|
$svg << %Q{<tspan }
- if (substring[/^s+$/]) then
+ if (substring[/^\s+$/]) then
+ p 'here'
$svg << %Q{letter-spacing="#{ax + cx}">}
else
$svg << %Q{letter-spacing="#{ax}">}

0 comments on commit 6e1eb99

Please sign in to comment.
Something went wrong with that request. Please try again.