Sha256: 71197c5784dcdfea636662e79563a602d1733a58417acac00b7112c9c3f7abe0

Contents?: true

Size: 685 Bytes

Versions: 38

Compression:

Stored size: 685 Bytes

Contents

# list.rb
#
# <ol> 順番付きリスト生成
#   <%= ol l %>
#   パラメタ:
#     l: リスト文字列(\nくぎり)
#
# <ul> 順番無しリスト
#   <%= ul l , t %>
#   パラメタ:
#     l: リスト文字列(\nくぎり)
#
# Copyright (c) 2002 abbey <inlet@cello.no-ip.org>
# Distributed under the GPL2 or any later version.
#

def ol( l, t = nil, s = nil )
	apply_plugin( %Q[<ol>#{li l}</ol>] )
end

def ul( l, t = nil)
	apply_plugin( %Q[<ul>#{li l}</ul>] )
end

def li( text )
	list = ""
	text.each_line do |line|
		list << ("<li>" + line.chomp + "</li>")
	end
	list
end


# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End:

Version data entries

38 entries across 28 versions & 1 rubygems

Version Path
tdiary-5.3.0 misc/plugin/list.rb
tdiary-5.2.4 misc/plugin/list.rb
tdiary-5.2.3 misc/plugin/list.rb
tdiary-5.2.2 misc/plugin/list.rb
tdiary-5.2.1 misc/plugin/list.rb
tdiary-5.2.0 misc/plugin/list.rb
tdiary-5.1.7 misc/plugin/list.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/misc/plugin/list.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/misc/plugin/list.rb
tdiary-5.1.6 misc/plugin/list.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/misc/plugin/list.rb
tdiary-5.1.5 misc/plugin/list.rb
tdiary-5.1.4 misc/plugin/list.rb
tdiary-5.1.3 misc/plugin/list.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/tdiary-5.0.14/misc/plugin/list.rb
tdiary-5.1.2 misc/plugin/list.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/tdiary-5.0.14/misc/plugin/list.rb
tdiary-5.1.1 misc/plugin/list.rb
tdiary-5.1.0 misc/plugin/list.rb
tdiary-5.0.14 misc/plugin/list.rb