From 8c1ac74f7cf3fe1eebb826a2db9a28a851adf3c0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 2 Jul 2008 09:00:29 -0400 Subject: full end element, no space in textarea darcs-hash:20080702130029-84dde-481fe1f3d7df5cc931010374a7eb8db4f179cf92.gz --- lib/util.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/util.php b/lib/util.php index 8e197fda5..fdb4808bd 100644 --- a/lib/util.php +++ b/lib/util.php @@ -94,7 +94,8 @@ function common_element_start($tag, $attrs=NULL) { function common_element_end($tag) { global $xw; - $xw->endElement(); + # TODO: switch based on $tag + $xw->fullEndElement(); } function common_element($tag, $attrs=NULL, $content=NULL) { @@ -838,7 +839,7 @@ function common_notice_form($action=NULL, $content=NULL) { common_element('span', array('id' => 'counter', 'class' => 'counter'), '140'); common_element('textarea', array('id' => 'status_textarea', 'name' => 'status_textarea'), - ($content) ? $content : ' '); + ($content) ? $content : ''); if ($action) { common_hidden('returnto', $action); } -- cgit v1.2.3-54-g00ecf