Gentoo Archives: gentoo-dev

From: Ben de Groot <yngwin@g.o>
To: gentoo-dev@l.g.o
Subject: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable=
Date: Tue, 29 Jan 2013 06:03:53
Message-Id: CAB9SyzQ8KXv2+XTHfTDoks8tX-e4X++6v=CjJ2bFtkSXLpkhyA@mail.gmail.com
In Reply to: Re: readme.gentoo.eclass: use echo -e instead of plain echo (Was: Re: [gentoo-dev] readme.gentoo.eclass: Add a DISABLE_AUTOFORMATTING variable= by Pacho Ramos
1 On 29 January 2013 03:30, Pacho Ramos <pacho@g.o> wrote:
2 > El lun, 28-01-2013 a las 14:37 +0800, Ben de Groot escribió:
3 >> I've started using this eclass, but with README files, not the variable,
4 >> because this is currently the only way I can make sure it honours my
5 >> formatting.
6 >>
7 >
8 > Couldn't it be covered if "echo -e" was used (even with fmt) and you,
9 > then, control formatting with some of the sequences it allows (they are
10 > shown in its man page)?
11
12 No. The eclass should assume that DOC_CONTENTS is already correctly
13 formatted. If you must, you can add a convenience function for people
14 who do want reformatting, but this should NOT be the default. Please
15 don't make this eclass harder to use than it needs to be.
16
17 --
18 Cheers,
19
20 Ben | yngwin
21 Gentoo developer
22 Gentoo Qt project lead, Gentoo Wiki admin

Replies