fix number crash
This commit is contained in:
parent
06bed3698f
commit
ffd1c06729
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class OrderPdf < Prawn::Document
|
||||||
|
|
||||||
# XXX avoid underscore instead of unicode whitespace in pdf :/
|
# XXX avoid underscore instead of unicode whitespace in pdf :/
|
||||||
def number_to_currency(number, options={})
|
def number_to_currency(number, options={})
|
||||||
super(number, options).gsub("\u202f", ' ')
|
super(number, options).gsub("\u202f", ' ') if number
|
||||||
end
|
end
|
||||||
|
|
||||||
# return fontsize after scaling it with any configured factor
|
# return fontsize after scaling it with any configured factor
|
||||||
|
|
Loading…
Reference in a new issue