On 02/08/2013 04:07 AM, Bernhard Voelker wrote:
> 
> 
> On February 7, 2013 at 8:20 PM Benno Schulenberg <[email protected]> 
> wrote:
>> On Thu, Feb 7, 2013, at 0:12, Bernhard Voelker wrote:
>>>   "), _("\
>>>     -X, --xyz     some text\n\
>>>   "), _("\
>>>     -Y            another option with a longer\n\
>>>                   description message\n\
>>>   "), _("\
>>
>> Hmmm...  To me these intervening lines with '"), _("\' look
>> distracting.

It's worth seeing how coreutils does this, for comparison:
http://git.sv.gnu.org/cgit/coreutils.git/tree/src/ls.c#n4714

> 
> Admitted, but the point was a nice alignment of the description
> column for options with a wrapped line. That would be harder
> with such an approach:
> 
>>   HTL ("  -X, --xyz     some text\n\");
>>   HTL ("  -Y            another option with a longer\n\
>>                   description message\n\");

No, just use C string concatenation to get alignment:

   HTL ("  -X, --xyz     some text\n");
   HTL ("  -Y            another option with a longer\n"
        "                description message\n");

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to