fix number crash

This commit is contained in:
wvengen 2014-06-06 12:45:21 +02:00
parent 06bed3698f
commit ffd1c06729

View file

@ -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