You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2007/10/22 19:53:53 UTC

svn commit: r587172 - /tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java

Author: andyhot
Date: Mon Oct 22 10:53:51 2007
New Revision: 587172

URL: http://svn.apache.org/viewvc?rev=587172&view=rev
Log:
TAPESTRY-1665

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java?rev=587172&r1=587171&r2=587172&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/html/Relation.java Mon Oct 22 10:53:51 2007
@@ -88,7 +88,8 @@
 
     protected void renderStyleTag(Shell shell, IMarkupWriter writer, IRequestCycle cycle)
     {
-        if (getBody() == null) //nothing to include
+        // see if nothing (or nowhere) to include
+        if (getBody() == null || writer.getContentType() == null)
         {
             return;
         }