core/unit: append newline when writing drop ins
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 May 2016 20:06:44 +0000 (16:06 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 28 May 2016 20:17:54 +0000 (16:17 -0400)
commit2a9a6f8ac04a69ca36d645f9305a33645f22a22b
tree95bdc575bf0bd732ce5736cde9344134802db400
parent0053598f3615c9a069264d08180f0132da1ec73f
core/unit: append newline when writing drop ins

unit_write_drop_in{,_private}{,_format} are all affected.

We already append a header to the file (and section markers), so those functions
can only be used to write a whole file at once. Including the newline at
the end feels natural.

After this commit newlines will be duplicated. They will be removed in
subsequent commit.

Also, rewrap the "autogenerated" header to fit within 80 columns.
src/core/unit.c