aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/html_lite_shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v5/html_lite_shared.rb')
-rw-r--r--lib/sisu/v5/html_lite_shared.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/sisu/v5/html_lite_shared.rb b/lib/sisu/v5/html_lite_shared.rb
index e109debc..3ce59049 100644
--- a/lib/sisu/v5/html_lite_shared.rb
+++ b/lib/sisu/v5/html_lite_shared.rb
@@ -126,7 +126,14 @@ module SiSU_FormatShared
u=u.gsub(/^\.\.\//,'')
"#{@env.url.root}/#{u}"
else
- "#{@env.url.root}/#{@md.fnb}/#{map_nametags[u][:segname]}#{Sfx[:html]}##{u}"
+ if not map_nametags[u].nil?
+ @env.url.root + '/' \
+ + @md.fnb + '/' \
+ + map_nametags[u][:segname] \
+ + Sfx[:html] \
+ + '#' + u
+ else ''
+ end
end
link=m[/(.+)/m]
png=m.scan(/\S+/)[0].strip