aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-07-22 21:33:40 -0400
committerRalph Amissah <ralph@amissah.com>2014-07-22 21:33:40 -0400
commitb9b01e57325197cbbed3f643cf998985e4354db0 (patch)
tree823f7371649f30c13e51c6779e7906b3580f840e /lib
parentv5 v6: bin/sisu, hub, hub close (ensure), remove /tmp/ processing dir (diff)
v5 v6: html_lite_shared, issue, fix
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v5/html_lite_shared.rb9
-rw-r--r--lib/sisu/v6/html_lite_shared.rb9
2 files changed, 16 insertions, 2 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
diff --git a/lib/sisu/v6/html_lite_shared.rb b/lib/sisu/v6/html_lite_shared.rb
index 88510f04..7ae17350 100644
--- a/lib/sisu/v6/html_lite_shared.rb
+++ b/lib/sisu/v6/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