[haiku-commits] Re: haiku: hrev44687 - src/bin/desklink

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 9 Oct 2012 14:57:40 -0400

On Tue, Oct 9, 2012 at 2:39 PM, Axel DÃrfler <axeld@xxxxxxxxxxxxxxxx> wrote:

> Am 09.10.2012 20:30, schrieb Rene Gollent:
>  +               BString label = B_TRANSLATE_COMMENT("Open %name", "Don't
>>> translate
>>> +                       variable %name");
>>> +               label.ReplaceFirst("%name", fRef.name);
>> This change breaks the build. You can't break a string across multiple
>> lines like this without quoting it on each line, but I'm not sure how
>> locale would play along with a string broken up in such a manner.
> Either way, there is no reason to break it into two lines anyway here, as
> it fits on a single line (that second string at least) easily.

It didn't break the build, it is legal to split a string across lines like
that, but you don't want to split the string into 2 lines like that because
you'll get a newline and a bunch of extra space in your comment.

John Scipione

Other related posts: