Tabs to spaces

Bug #741228 reported by Olaf van der Spek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Wishlist
Unassigned

Bug Description

Some editors/people prefer/use tabs, others use spaces. Could you add a rule to the rules file that allows bzr to convert tabs to a specified number of spaces?

affects: bzr-mirror → bzr
Jelmer Vernooij (jelmer)
Changed in bzr:
importance: Undecided → Wishlist
status: New → Confirmed
tags: added: content-filtering
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Rather than putting this in core it might make sense for us to publish an example plugin that demonstrates things like this. There are lots of variations to this theme.

Revision history for this message
Olaf van der Spek (olafvdspek) wrote : Re: [Bug 741228] Re: Tabs to spaces

On Wed, Mar 23, 2011 at 9:56 PM, Jelmer Vernooij
<email address hidden> wrote:
> Rather than putting this in core it might make sense for us to publish
> an example plugin that demonstrates things like this. There are lots of
> variations to this theme.

What are the variations?

--
Olaf

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

On Wed, 2011-03-23 at 21:14 +0000, Olaf van der Spek wrote:
> On Wed, Mar 23, 2011 at 9:56 PM, Jelmer Vernooij
> <email address hidden> wrote:
> > Rather than putting this in core it might make sense for us to publish
> > an example plugin that demonstrates things like this. There are lots of
> > variations to this theme.
> What are the variations?
Expanding tabs, checking copyright headers for years, checking files for
licenses, stripping trailing whitespace, enforcing particular C
indentation styles, etc.

It is certainly possible to add options to bzr for these things, and for
the common ones (like expanding tabs) I think it's reasonable to do so.
That said, there are a lot of things we are working on at the moment and
this isn't very high on our list. In the short term I think it'd be much
more useful if we provided some better infrastructure that allowed users
to write a ten-line python plugin that enforced their particular style
guide.

Cheers,

Jelmer

Revision history for this message
Olaf van der Spek (olafvdspek) wrote :

On Thu, Mar 24, 2011 at 2:13 PM, Jelmer Vernooij
<email address hidden> wrote:
> On Wed, 2011-03-23 at 21:14 +0000, Olaf van der Spek wrote:
>> On Wed, Mar 23, 2011 at 9:56 PM, Jelmer Vernooij
>> <email address hidden> wrote:
>> > Rather than putting this in core it might make sense for us to publish
>> > an example plugin that demonstrates things like this. There are lots of
>> > variations to this theme.
>> What are the variations?
> Expanding tabs, checking copyright headers for years, checking files for
> licenses, stripping trailing whitespace, enforcing particular C
> indentation styles, etc.

Trailing whitespace affects diffs and leading whitespace differences
are invisible and depended on editor settings.
But yeah, a generic way to handle this with a plugin would be nice.

Olaf

Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.