aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-03-25 22:53:58 -0400
committerRalph Amissah <ralph@amissah.com>2013-03-25 22:55:55 -0400
commit745ce4eee3dd728d1ceac19a7d2af1e67329f2d4 (patch)
tree99629e8543214e4775704f24b5839cc66d01906c
parentv4: sysenv, copy or create homepages, one of the actions taken on --config (diff)
v4: param, guard against situation where no document creator/author given
-rw-r--r--data/doc/sisu/CHANGELOG_v42
-rw-r--r--lib/sisu/v4/param.rb3
2 files changed, 4 insertions, 1 deletions
diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4
index da105e62..c47857c1 100644
--- a/data/doc/sisu/CHANGELOG_v4
+++ b/data/doc/sisu/CHANGELOG_v4
@@ -34,6 +34,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.17.orig.tar.xz
* provide info as to where manually created homepages may be stored
* do not make default sisu homepage (previously did)
+* v4: param, guard against situation where no document creator/author given
+
%% 4.0.16.orig.tar.xz (2013-03-18:11/1)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.16
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.16-1
diff --git a/lib/sisu/v4/param.rb b/lib/sisu/v4/param.rb
index 360625e4..035697c9 100644
--- a/lib/sisu/v4/param.rb
+++ b/lib/sisu/v4/param.rb
@@ -1154,7 +1154,8 @@ module SiSU_Param
tf="@title: #{tf}"
@title=SiSU_Param::Parameters::Md.new(tf.strip,@opt,@env).title
end
- creator=(defined? @creator.author \
+ creator=(@creator.is_a?(SiSU_Param::Parameters::Md) \
+ && defined? @creator.author \
&& @creator.author.is_a?(String)) \
? " #{@creator.author}"
: ''