summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Goerzen <jgoerzen@complete.org>2008-03-14 00:52:26 +0000
committerJohn Goerzen <jgoerzen@complete.org>2008-03-14 00:52:26 +0000
commitcdf3e2b6ef0f2c2bd79c79417a7ae7c9e5280046 (patch)
tree236d58a8f888de69e906b028e5c18730210f9d33
parent84d2ea054d1dffdae57ec9c97f8251dde353f9b2 (diff)
downloadredmine-cdf3e2b6ef0f2c2bd79c79417a7ae7c9e5280046.tar.gz
redmine-cdf3e2b6ef0f2c2bd79c79417a7ae7c9e5280046.zip
Fix trac converter WikiCaps to put a space before converted WikiCaps words
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1246 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/tasks/migrate_from_trac.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/migrate_from_trac.rake b/lib/tasks/migrate_from_trac.rake
index b07be03b8..51d85fe0f 100644
--- a/lib/tasks/migrate_from_trac.rake
+++ b/lib/tasks/migrate_from_trac.rake
@@ -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')