Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

Add spaceOutWikiWord to Func

Motivation

To space out wikiwords, plugins now invent their own methods. This leads to buggy implementations, see SpacedWikiWordPlugin.

Description and Documentation

Add a public interface to spaceOutWikiWord

Implementation

=pod

---+++ spaceOutWikiWord( $word, $sep ) -> $text

Spaces out a wiki word by inserting a string (default: one space) between each word component.
With parameter $sep any string may be used as separator between the word components; if $sep is undefined it defaults to a space.

*Since:* TWiki::Plugins::VERSION 1.13

=cut

sub spaceOutWikiWord {
    #my ( $word, $sep ) = @_;
    return TWiki::spaceOutWikiWord(@_);
}

-- Contributors: ArthurClemens

Discussion

Good idea!

-- CrawfordCurrie - 20 Apr 2007

Agreed. Taking the opportunity, it would be nice if the core also handles the DONTSPACE TWikiPreferences setting like SpreadSheetPlugin#FuncPROPERSPACE.

-- PeterThoeny - 20 Apr 2007

That is in Bugs:Item3922. It is my intention to tackle that one as well. Done: r.13482.

-- ArthurClemens - 20 Apr 2007

Agree on feature. Will most likely be accepted by 14-day rule so no big risk in implenting.

-- KennethLavrsen - 23 Apr 2007

Above statement was confirmed at FreetownReleaseMeeting2007x04x23. But we did not vote because people need at least a couple of days to review a proposal.

With accept from Peter, Crawford, Kenneth, and Sven it is not very likely that any other programmer can raise enough votes against a no brainer API addition so if you check in the change the risk of having to revert is in practical zero. So then it is better to get extra time to test it.

-- KennethLavrsen - 23 Apr 2007

I really feel this is a nobrainer, and should not even need a discussion and a decision, just an open proposal (as has been done already.)

-- PeterThoeny - 24 Apr 2007

Will you feel the same when it is a feature you do not want? Let us follow the process. Then we have less discussions when we do not agree.

-- KennethLavrsen - 25 Apr 2007

I have commited the addition. It can be removed easily in case of an objection.

-- ArthurClemens - 28 Apr 2007

Accepted by 14 day rule. This is an indication that our process works.

-- PeterThoeny - 08 May 2007

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2007-05-08 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.