http://www.perlmonks.org?node_id=359711

A while back I put together a patch that will handle collapsing Re:'s in a consistant and automatic fashion. A few people who know about it have been nudging me to get it moved over from test to here. And so today I did. Here is an example of what will happen: (Actually this is a piece of code that I think we could open up to a golf competition. :-)

# In : •Re: Bypassing strict refs # Out: Re^2: Bypassing strict refs # # In : Re: •Re: Bypassing strict refs # Out: Re^3: Bypassing strict refs # # In : Re: •Re: •Re: Bypassing strict refs # Out: Re^4: Bypassing strict refs # # In : Re: (12345) Re: Re: •Re: •Re: Bypassing strict refs # Out: Re^6: Bypassing strict refs # # In : Re: (12345) Re: Re: • Re: •Re: Bypassing strict r +efs # Out: Re^6: Bypassing strict refs # # In : Re: (12345) Re: Foo Bar # Out: Re^3: Foo Bar # # In : Re: Re^3: New code wrap options (in-line code CSS class)| # Out: Re^5: New code wrap options (in-line code CSS class)| # # In : Re: (tye)Re: New code wrap options # Out: Re^3: New code wrap options # # In : Re: Re: Re: Re: The ethics of humour # Out: Re^5: The ethics of humour # # In : Re: Foo Bar # Out: Re^2: Foo Bar # # In : Re: (demerphq) Re: Foo Bar # Out: Re^3: Foo Bar # # In : Re: (tye) Re: (demerphq) Re: Foo Bar # Out: Re^4: Foo Bar # # In : Re^2: (tye) Re: (demerphq) Re: Foo Bar # Out: Re^5: Foo Bar # # In : Re^2: (tye) Re: Re^2: Re: (demerphq) Re: Foo Bar # Out: Re^8: Foo Bar #

No doubt some people will be upset, but I hope most people will like it, certainly a lot of folks do something like this themselves. The code also actually involved refactoring a chunk of code out of a few places so on the structural side its been useful for the site. In fact if folks decide the rules I'm using aren't the best we can easily change them to suit.

Anyway, just thought you all should know whats up and who to yell at. :-)


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi