mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Merge pull request #647 from awerlang/patch-1
print empty string instead of undefined or null
This commit is contained in:
commit
2e18ea25e9
@ -23,7 +23,7 @@ module.exports =
|
||||
options = @_initOptions(x, y, options)
|
||||
|
||||
# Convert text to a string
|
||||
text = '' + text
|
||||
text = if not text? then '' else '' + text
|
||||
|
||||
# if the wordSpacing option is specified, remove multiple consecutive spaces
|
||||
if options.wordSpacing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user