soywiki 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/soywiki-expand +2 -2
- data/lib/soywiki.rb +1 -1
- metadata +2 -2
data/bin/soywiki-expand
CHANGED
@@ -28,9 +28,9 @@ def expand(file, mode, level=0)
|
|
28
28
|
# note that the wiki link must be alone on the line to be expanded
|
29
29
|
if line =~ WIKI_LINK_PATTERN
|
30
30
|
link = line.strip
|
31
|
-
if link =~
|
31
|
+
if link =~ /(\A|\s)[A-Z]/ # short link in namespace (relative link)
|
32
32
|
namespace = file.namespace
|
33
|
-
link = [namespace, link].join
|
33
|
+
link = [namespace, link].join('.')
|
34
34
|
end
|
35
35
|
if File.file?(link.to_file_path) && !PROCESSED_FILES.include?(link.to_file_path)
|
36
36
|
if mode == 'seamful'
|
data/lib/soywiki.rb
CHANGED