in reply to Spaces in " Code Prefix" ?

The only thing I can see in the code that would be causing the behavior you're noting is s/  /  /g, which I added so that if you had a prefix of (say) "Foo:", and the line starts with a space, you don't get a double-space at the beginning of the line, which would be quashed down to a single space.

However, I don't see where that'd be causing the problem you're seeing -- it should only hit on double-space, whereas you've got a single space.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re^2: Spaces in " Code Prefix" ?
by tye (Sage) on May 27, 2003 at 15:40 UTC

    No, the code you added was this:

    # Prevent trailing spaces from quashing initial spaces in code: $prefix =~ s/ / /g;
    Update:: Thanks for the new patch. It has been applied. The problem should be fixed now.

                    - tye