[Po4a-devel]Canonizing tabs

Nicolas François nicolas.francois@centraliens.net
Wed, 23 Mar 2005 21:38:09 +0100


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çois wrote:
> > I fact, I'm not really concerned by tabs at the beginning of lines, b=
ut 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 mak=
e
> 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?

-- 
Nekral