Merge pull request #100 from jackmcdade/5.1

dl() now supports multiple descriptions per term
This commit is contained in:
Adam Engebretson committed 2015-11-28 02:26:21 -06:00
commit 828da38dcd
1 file changed
+7 -1
+7 -1
View File
@@ -294,7 +294,13 @@ class HtmlBuilder
$html = "<dl{$attributes}>"; $html = "<dl{$attributes}>";
foreach ($list as $key => $value) { foreach ($list as $key => $value) {
$html .= "<dt>$key</dt><dd>$value</dd>"; $value = (array) $value;
$html .= "<dt>$key</dt>";
foreach ($value as $v_key => $v_value) {
$html .= "<dd>$v_value</dd>";
}
} }
$html .= '</dl>'; $html .= '</dl>';