Fixed folding of output without <head> or <body> tag