]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
full end element, no space in textarea
authorEvan Prodromou <evan@prodromou.name>
Wed, 2 Jul 2008 13:00:29 +0000 (09:00 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 2 Jul 2008 13:00:29 +0000 (09:00 -0400)
darcs-hash:20080702130029-84dde-481fe1f3d7df5cc931010374a7eb8db4f179cf92.gz

lib/util.php

index 8e197fda5bbcccdd43ad74d1cea2451e4f3b2e87..fdb4808bd21e51451b3286a767d4b8d8bad4eaa5 100644 (file)
@@ -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);
        }