You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/06/06 17:10:45 UTC

svn commit: r663975 - /incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php

Author: chabotc
Date: Fri Jun  6 08:10:44 2008
New Revision: 663975

URL: http://svn.apache.org/viewvc?rev=663975&view=rev
Log:
SHINDIG-322 bug when concatenating inline JS (when js compress == false)

Modified:
    incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php

Modified: incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php?rev=663975&r1=663974&r2=663975&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php (original)
+++ incubator/shindig/trunk/php/src/gadgets/http/GadgetRenderingServlet.php Fri Jun  6 08:10:44 2008
@@ -162,7 +162,7 @@
 			} else {
 				// FILE or RESOURCE
 				if ($forcedLibs == null) {
-					echo $library->getContent();
+					echo $library->getContent() . "\n";
 				}
 				// otherwise it was already included by config.forceJsLibs.
 			}
@@ -177,7 +177,7 @@
 			echo $externJs;
 		}
 		echo "<script><!--\n" . $this->appendJsConfig($context, $gadget) . $this->appendMessages($gadget) . "-->\n</script>\n";
-
+		
 		$gadgetExceptions = array();
 		$content = $gadget->getSubstitutions()->substitute($view->getContent());
 		if (empty($content)) {