The GLib docs say: "Typically, format should end with its own new-line character":
https://developer.gnome.org/glib/stable/glib-Warnings-and-Assertions.html#g-print
- Not including a newline is more flexible as the caller can conditionally print part of a line, then the remaining part and a newline.
- Almost all the uses of g_print and g_printerr in geany and geany-plugins already include a newline at the end of
msg
. Printing two newlines is annoying.
- This adds a newline for the remaining cases in geany.
- I have a pull ready for geany-plugins, will edit this line when submitted. Only needed to change one line.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2309
Commit Summary
- g_print handler: Don't add newline
- g_printerr handler: Don't add newline
File Changes
Patch Links:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.