Sha256: d68a49d8aeb03f3442c5061f7d70048b37f51005934608201a1b86353fec45ae

Contents?: true

Size: 696 Bytes

Versions: 20

Compression:

Stored size: 696 Bytes

Contents

# -*- coding: utf-8 -*-
# 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 GPL.
#

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
	result = list
end


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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tdiary-4.0.4 misc/plugin/list.rb
tdiary-4.0.3 misc/plugin/list.rb
tdiary-4.0.2.20140201 misc/plugin/list.rb
tdiary-4.0.2 misc/plugin/list.rb
tdiary-4.0.1.20131102 misc/plugin/list.rb
tdiary-4.0.1.20130929 misc/plugin/list.rb
tdiary-4.0.1.20130903 misc/plugin/list.rb
tdiary-4.0.1 misc/plugin/list.rb
tdiary-4.0.0.20130826 misc/plugin/list.rb
tdiary-4.0.0 misc/plugin/list.rb
tdiary-3.2.2.20130727 misc/plugin/list.rb
tdiary-3.2.2.20130722 misc/plugin/list.rb
tdiary-3.2.2.20130720 misc/plugin/list.rb
tdiary-3.2.2.20130617 misc/plugin/list.rb
tdiary-3.2.2.20130614 misc/plugin/list.rb
tdiary-3.2.2.20130604 misc/plugin/list.rb
tdiary-3.2.2.20130527 misc/plugin/list.rb
tdiary-3.2.2.20130518 misc/plugin/list.rb
tdiary-3.2.2.20130508 misc/plugin/list.rb
tdiary-3.2.2.20130507 misc/plugin/list.rb