After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690127 - Print statement does not print newline if it has a null argument
Print statement does not print newline if it has a null argument
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Genie
0.18.x
Other Linux
: Normal normal
: ---
Assigned To: Jamie McCracken
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-12 21:42 UTC by Tal Liron
Modified: 2013-09-08 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tal Liron 2012-12-12 21:42:43 UTC
This will print a newline at the end:

 var s = "hello"
 print s

This will print "(null)" but without a newline:

 s: string? = null
 print s
Comment 1 Jamie McCracken 2013-09-08 23:21:13 UTC
This is now fixed in master and a newline will be added even if the string variable evaluates to null

also print "" will just print a newline