ev/rwd.rb in rwdmovies-0.7 vs ev/rwd.rb in rwdmovies-0.90

- old
+ new

@@ -265,11 +265,11 @@ template = $rwd_html_1 template = $rwd_html_PDA_1 if pda res <<(template(template, args)) - when "p" then res << "<p #{align}>" + when "p" then res << "<p #{align} > " when "pre" then res << "<pre #{align}>" when "big" then res << "<p #{align}><big>" when "small" then res << "<p #{align}><small>" when "list" then res << "<ul #{align}>" when "item" then res << "<li #{align}>" @@ -306,12 +306,13 @@ when "table" then res << "<table #{AC} border='#{$rwd_border}' cellspacing='#{cellspacing}' cellpadding='0'>" when "row" then res << "<tr #{align} #{valign}>" when "hidden" then res << "<p #{align}><input name='#{@args["name"]}' value='#{value1}' type='hidden'>" when "text" maxlength = "" - maxlength = "maxlength='%s'" % @args["maxlength"] if @args.include?("maxlength") + maxlength = "maxlength='%s'" % @args["maxlength"] if @args.include?("maxlength") size = "" - size = "size='%s'" % 10 if pda + size = "size='%s'" % @args["size"] if @args.include?("size") + size = "size='%s'" % 10 if pda res << "<p #{align}><input name='#{@args["name"]}' value='#{value1}' type='text' #{maxlength} #{size}>" oneormorefields << "true" when "textarea" res << "<p #{align}><textarea name='#{@args["name"]}' rows='25' cols='80'>#{value2.crlf}</textarea>" oneormorefields << "true"