diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-08-22 23:56:36 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-08-22 23:56:36 +0100 |
commit | f5364f306f06da07d5be423452ac8f94d089eea0 (patch) | |
tree | 5de6e612c913def4b6de90422fb4cf17d7d96006 /lib/sisu/v0/param_identify_markup.rb | |
parent | Merge branch 'upstream' into debian/sid (diff) | |
parent | version bump to 0.57, minor addition to markup (a header to heading shortcut)... (diff) |
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/param_identify_markup.rb')
-rw-r--r-- | lib/sisu/v0/param_identify_markup.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/sisu/v0/param_identify_markup.rb b/lib/sisu/v0/param_identify_markup.rb index 21e796e8..93c8bf79 100644 --- a/lib/sisu/v0/param_identify_markup.rb +++ b/lib/sisu/v0/param_identify_markup.rb @@ -71,8 +71,13 @@ module SiSU_Markup elsif @cont[0] =~ /^(?:%\s+)?SiSU\s+([0-9](?:\.[0-9]+){1,2})/ or @cont[0] =~ /^(?:%\s+)?sisu-([0-9](?:\.[0-9]+){1,2})/ @version_declared=$1 end - @flag_38=false + @flag_57,@flag_38=false,false @cont.each_with_index do |y,i| + if @flag_57 or y =~/^:?A~\?? @title/ + @version_determined=0.57 + @flag_57=true + break + end if @flag_38 or y =~/^:?A~/ @version_determined=0.38 @flag_38=true |