[Po4a-devel]Canonizing tabs

Jordi Vilalta jvprat@wanadoo.es
Wed, 23 Mar 2005 23:20:45 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---1463811584-1794917312-1111616445=:30668
Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

On Wed, 23 Mar 2005, Nicolas Fran=E7ois wrote:
> On Wed, Mar 23, 2005 at 01:14:14AM +0100, Martin Quinson wrote:
>> On Wed, Mar 23, 2005 at 12:55:24AM +0100, Nicolas Fran=E7ois wrote:
>>> I fact, I'm not really concerned by tabs at the beginning of lines, but=
 in
>>> their middle.
>>
>> If so, you can move the s/\t/  / before the s/\n/  / and change it to a
>> s/\n\t+/  /. It will do the trick for Jordi's xml document, and may make
>> your life easier.
>
> I tried with 's/^[ \t]+/  /gm;' (still before the 's/\n/  /gm') and only
> the sane-avision page was changed (its usage of a tab is anyway buggy).
>
> Jordi, would this patch be sufficient for you?

Yes, it seems to be enough for my case.

Regards,

Jordi Vilalta
---1463811584-1794917312-1111616445=:30668--