On 10/16/2013 07:33 PM, D. Michael McIntyre wrote:
> While I was writing this, Ted committed this (as displayed on SourceForge):
>
> +    //if (baseSegmentItr == m_originalSegment.end()) {
> +    //    RG_DEBUG << "EventSelection::addRemoveEvent(): "
> +    //             << "Sent event that can not be found in original
> segment.";
> +        // Note: This is perfectly ok.  The rest of the code checks
> +        //       baseSegmentIter to make sure it is valid before using
> +        //       it.
> +    //}
>
> Ted's editor is set to use 4 spaces for tabs, but SourceForge's diff
> printer expanded them to 8.

   Actually, that was as intended.  It looks a bit bizarre, though.  I 
commented out the code, but I didn't redundantly comment out the 
comments which were in column 8 where they belong.

   It would be nice to have an untabify tool to do this.  For some of 
rg's code, I've used sed:

sed 's/^\t\t\t\t/                                /' <input.txt | \
     sed 's/^\t\t\t/                        /' | \
     sed 's/^\t\t/                /' | \
     sed 's/^\t/        /' >output.txt

   But this only works where people are indenting at 4, with spaces for 
4 and tabs for 8.  And it only catches tabs at the very beginning of 
lines.  So it requires some hand-tweaking afterward.

Ted.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to