From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: prevent inserting \n symbol in the end of lines in emacs po-mode Date: Sat, 13 Apr 2019 19:53:00 +0200 Message-ID: <20190413175300.52yd5izlm5et657b@pelzflorian.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:37739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFMps-0000Ht-8f for help-guix@gnu.org; Sat, 13 Apr 2019 13:53:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFMpq-00005q-Ui for help-guix@gnu.org; Sat, 13 Apr 2019 13:53:04 -0400 Received: from pelzflorian.de ([5.45.111.108]:45536 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFMpq-0008RN-Bd for help-guix@gnu.org; Sat, 13 Apr 2019 13:53:02 -0400 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@disroot.org Cc: help-guix On Sat, Apr 13, 2019 at 04:45:21PM +0000, znavko@disroot.org wrote: > When editing .po file in emacs po-mode and inserting two lines into > msgstr, emacs adds "n" symbol. > > And it breaks the logic here: >=20 > #. type: Plain text > #: doc/contributing.texi:141 > msgid "" > "@dots{} and for a REPL (@pxref{Using Guile Interactively,,, guile, Gui= le " > "Reference Manual}):" > msgstr "" > "@dots{} =D0=B8 =D0=B4=D0=BB=D1=8F REPL (@pxref{Using Guile Interactive= ly,,, guile, Guilen" > "Reference Manual}):" >=20 > http://0x0.st/zNAS.png (http://0x0.st/zNAS.png) >=20 > I think link to Guile Reference manual will not work with n in the > middle of it. >=20 This \n is printed in place of a newline character. I believe you have wrapped the paragraph to multiple lines when it must be on a single line. Normally I press Ctrl+J to copy the original msgid and adapt it without adding newlines. > I've enabled long-line-mode as described here > https://www.emacswiki.org/emacs/PoMode > (https://www.emacswiki.org/emacs/PoMode) (and including longlines.el > into .emacs) > > So I can create long-long lines and they are displaying convenient > way. And I've compared french translation does not follow the same > line length rule as in original po file: http://0x0.st/zNmQ.png > When you open the French PO file and start editing the msgstr in emacs=E2=80=99 po-mode, you will see it has no line wrapping any more. T= he paragraph that was a single line must be on a single line when editing it in emacs=E2=80=99 po-mode. > But nevertheless is it necessary to insert translation messages > strings with line breaks but without emacs insert 'n' in the end of > line? I do not know emacs well enough. Maybe there is a way to print long lines more nicely, but I just go with an ugly long line. A single line must remain a single line for the po-mode logic. Regards, Florian