--- l:\public_html/hikidoc/trunk/lib/hikidoc.rb Wed Sep 14 6:24:46 2005 +++ l:\public_html/hiki/style/default/hikidoc.rb Wed Sep 14 13:55:48 2005 @@ -200,7 +200,7 @@ ###################################################################### # definition - DEFINITION_RE = /^:(.*?)?:(.+)\n?/ + DEFINITION_RE = /^:(.*?)?:(.*)\n?/ DEFINITIONS_RE = /(#{DEFINITION_RE})+/ def parse_definition( text ) @@ -213,6 +213,8 @@ str.scan( DEFINITION_RE ) do |t, d| if t.empty? ret << "
%s
\n" % d + elsif d.empty? + ret << "
%s
\n" % t else ret << "
%s
%s
\n" % [ t, d ] end @@ -229,6 +231,8 @@ str.scan( DEFINITION_RE ) do |t, d| if t.empty? ret << "
%s
\n" % inline_parser( d ) + elsif d.empty? + ret << "
%s
\n" % inline_parser( t ) else ret << "
%s
%s
\n" % [ inline_parser( t ), inline_parser( d ) ] end