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
This commit is contained in:
parent
84d2ea054d
commit
cdf3e2b6ef
|
@ -218,7 +218,7 @@ namespace :redmine do
|
||||||
text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
|
text = text.gsub(/\[wiki:([^\s\]]+).*\]/) {|s| "[[#{$1.delete(',./?;|:')}]]"}
|
||||||
|
|
||||||
# Links to pages UsingJustCaps
|
# 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
|
# Normalize things that were supposed to not be links
|
||||||
# like !NotALink
|
# like !NotALink
|
||||||
text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2')
|
text = text.gsub(/(^| )!([A-Z][A-Za-z]+)/, '\1\2')
|
||||||
|
|
Loading…
Reference in New Issue