]> source.dussan.org Git - redmine.git/commitdiff
Fix trac converter WikiCaps to put a space before converted WikiCaps words
authorJohn Goerzen <jgoerzen@complete.org>
Fri, 14 Mar 2008 00:52:26 +0000 (00:52 +0000)
committerJohn Goerzen <jgoerzen@complete.org>
Fri, 14 Mar 2008 00:52:26 +0000 (00:52 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1246 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/migrate_from_trac.rake

index b07be03b8a61c075b054fa76cf07eb42f7666a4f..51d85fe0fc5dceb71d850952ec4b1fed88caabb5 100644 (file)
@@ -218,7 +218,7 @@ namespace :redmine do
         text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
 
        # Links to pages UsingJustCaps
-       text = text.gsub(/[^!]\b([A-Z][a-z]+[A-Z][a-zA-Z]+)/, '[[\1]]')
+       text = text.gsub(/[^!]\b([A-Z][a-z]+[A-Z][a-zA-Z]+)/, ' [[\1]]')
        # Normalize things that were supposed to not be links
        # like !NotALink
        text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2')