Bug 48344: Don't force newline after list at EOF

We required at least one newline after lists.

This patch adds a case that does not require the newline at EOF.

Bug: 48344
Change-Id: I479cfc12f49a5e0f28e92217a9ed041fc2e82223
Merge "Bug 48344: Don't force newline after list at EOF"