eclair/prepare_gerrit_comment: Fix size trimming logic

Previously, we appended a new line and then checked for size limit, which
still could lead to size overflow. Now check for size before appending a
new line.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ib0c55ba52c36e6db9b0fb0d41ed790473af1e9e0
1 file changed