7stud -- wrote:
>
> I have no idea why that is the case.
>
Here is a simplification of the issue if anyone wants to offer some
advice. The following code produces no errors:
#!/usr/bin/ruby
require "cgi"
cgi = CGI.new('html4')
output = cgi.html {
cgi.head { cgi.title { "Test" } } +
cgi.body {
cgi.form('post') {
cgi.textarea() +
cgi.submit
} #form
} #cgi.body
} #cgi.html
This code produces kEND errors:
#!/usr/bin/ruby
require "cgi"
cgi = CGI.new('html4')
output = cgi.html {
cgi.head { cgi.title { "Test" } } +
cgi.body {
cgi.form('post') {
if true
cgi.textarea() +
end
cgi.submit
} #form
} #cgi.body
} #cgi.html
--
Posted via http://www.ruby-forum.com/.