Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 19 Feb 2018 04:06:36 UTC Commit: e1175d4c0e32f9b76e0f440abd9e657369d405eb https://github.com/geany/geany-plugins/commit/e1175d4c0e32f9b76e0f440abd9e65...
Log Message: ----------- pohelper: Do not leave spaces at the start of a line when rewrapping
Modified Paths: -------------- pohelper/src/gph-plugin.c
Modified: pohelper/src/gph-plugin.c 10 lines changed, 7 insertions(+), 3 deletions(-) =================================================================== @@ -877,10 +877,14 @@ split_msg (const gchar *str, if (nl) nl += 2;
- if (p) - p++; - else /* if there is no separator, use the end of the string */ + if (! p) /* if there is no separator, use the end of the string */ p = strchr (str, 0); + else { + p++; + /* try not to leave a space at the start of a chunk */ + while (*p == ' ') + p++; + }
if (nl && ((gsize)(chunk_len + g_utf8_strlen (str, nl - str)) <= len || (nl < p && chunk->len == 0))) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
plugins-commits@lists.geany.org