* Re: [gentoo-dev] Ebuild indentation (tabs vs. spaces) fascism ;^)
@ 2002-04-29 15:36 99% ` Jon Nelson
0 siblings, 0 replies; 1+ results
From: Jon Nelson @ 2002-04-29 15:36 UTC (permalink / raw
To: gentoo-dev; +Cc: styx
On Mon, 29 Apr 2002 17:00:39 +0000
Joachim Blaabjerg <styx@SuxOS.org> wrote:
>
> Spider wrote:
> > now, Does anyone know how to make gpm transfer tabs/spaces ok
> > instead of converting all my tabs to spaces? or failing gpm
> > working, getting vim to notice gpm broken paste and convert
> > and align nicely?
>
> I don't know how that would be done, and I agree with mr.
> McArthur that it is unlikely to happen. However, you could
> always use an sed ugly hack once in a while to convert tabs to
> spaces.
>
> sed s/"\t"/\ \ \ \ /g source-tabs.c > source-spaces.c
>
> It works here, but I realise it's _far_ from a solution (and
> ugly as hell). Just replace the number of escaped spaces to
> suit your needs.
Uh, you could always just use 'unexpand' (spaces->tabs) or
'expand' (tabs->spaces).
--
Jon Nelson
C and Python Programmer, Code Gardener
Just because it's not broken doesn't mean we can't take it apart.
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2002-04-27 22:17 [gentoo-dev] Ebuild indentation (tabs vs. spaces) fascism ;^) Arcady Genkin
2002-04-29 12:08 ` Spider
2002-04-29 12:26 ` William McArthur
2002-04-29 17:00 ` Joachim Blaabjerg
2002-04-29 15:36 99% ` Jon Nelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox