diff --git a/ext/setup/main.php b/ext/setup/main.php
index 40551e5c..5ec75c12 100644
--- a/ext/setup/main.php
+++ b/ext/setup/main.php
@@ -79,8 +79,8 @@ class SetupBlock extends Block {
if(!is_null($label)) {
$this->body .= "";
}
- $this->body .= "\n";
- $this->body .= "\n"; // setup page auto-layout counts
tags
+ $rows = max(3, min(10, count(explode("\n", $val))));
+ $this->body .= "\n";
$this->body .= "\n";
}