From 40b83047b2a77998354188dabca8ad352b17d45f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 11 May 2015 18:56:20 -0400 Subject: appendices: bibliography & glossary, worked on * bibliography & glossary make activated by markup headers 1~!biblio & 1~!glossary * bibliography tags altered (introduced in 5.8.0 v6 project dir branch) * version bump for change in behavior --- lib/sisu/html_format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sisu/html_format.rb') diff --git a/lib/sisu/html_format.rb b/lib/sisu/html_format.rb index b5726626..54edac82 100644 --- a/lib/sisu/html_format.rb +++ b/lib/sisu/html_format.rb @@ -883,7 +883,7 @@ WOK tags='' if defined? dob.tags \ and dob.tags.length > 0 # insert tags "hypertargets" - dob.tags.each do |t| + dob.tags.compact.each do |t| # .compact hides a problem, nil should not occur fix (upstream) t=t.gsub(/[^a-z0-9._-]/,'') #use for all html tags? consider limiting to strict? or implementing earlier tags=(t =~/^[0-9.]+$/) \ ? tags #check what can be sorted in ao -- cgit v1.2.3