Browse Source

New line here makes a lot of slightly tidier looking HTML code

jangliss 20 years ago
parent
commit
140fbed2ec
1 changed files with 3 additions and 3 deletions
  1. 3 3
      functions/html.php

+ 3 - 3
functions/html.php

@@ -81,9 +81,9 @@ function html_tag( $tag,                // Tag to output
         }
 
         if ( $val <> '' ) {
-            $ret .= ">$val</$tag>";
+            $ret .= ">$val</$tag>\n";
         } else {
-            $ret .= '>';
+            $ret .= '>'. "\n";
         }
 
         return( $ret );
@@ -178,4 +178,4 @@ function html_tag( $tag,                // Tag to output
             echo $format_ar[$frm_last];
         }
     }
-?>
+?>