# list.rb $Revision$
#
#
順番付きリスト生成
# <%= ol l %>
# パラメタ:
# l: リスト文字列(\nくぎり)
#
# 順番無しリスト
# <%= ul l , t %>
# パラメタ:
# l: リスト文字列(\nくぎり)
#
# Copyright (c) 2002 abbey
# Distributed under the GPL.
#
=begin ChangeLog
2002-12-18 TADA Tadashi
* remove parameter of t and s (for HTML Strict).
=end
def ol( l, t = nil, s = nil )
apply_plugin( %Q[#{li l}
] )
end
def ul( l, t = nil)
apply_plugin( %Q[] )
end
def li( text )
list = ""
text.each do |line|
list << ("- " + line.chomp + "
")
end
result = list
end