rem: if (!item.text) 
add: if (!item.text ) 
context: function rss_action() {   res.contentType = "text/xml";   res.dependsOn(this.lastupdate);   res.digest();   var now = new Date();   var systitle = root.getTitle();   var sdf = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");   sdf.setTimeZone(new java.util.SimpleTimeZone(0, "UTC"));   var collection, subtitle;   switch (true) {      case (req.data.show == "all") :         collection = this.allcontent;         subtitle = "with comments";         break;      // FIXME: i don't think a day makes much sense as rss output [tobi]      case (req.data.day != null) :         collection = this.get(req.data.day);         subtitle = req.data.day;         break;      case (req.data.topic != null) :         collection = this.topics.get(req.data.topic);         subtitle = req.data.topic;         break;      default :         collection = this.allstories;   }   var size = (collection != null) ? collection.size() : 0;   var max = req.data.max ? parseInt(req.data.max) : 7;   max = Math.min(max, size);   max = Math.min(max, 10);   var item = {};   if (max > 0 && this.online) {      var items = new java.lang.StringBuffer();      var resources = new java.lang.StringBuffer();      collection.prefetchChildren(0, max);      for (var i=0; i<max; i++) {         var story = collection.get(i);         var item = {            url: story.href(),            title: story.getRenderedContentPart("title").stripTags().clip(50),            text: story.getRenderedContentPart("text").stripTags().clip(500),            publisher: systitle,            creator: story.creator.name,            date: sdf.format(story.createtime),            subject: story.topic ? story.topic : "",            year: story.createtime.getFullYear()         };         if (story.creator.publishemail)            item.email = story.creator.email.entitize();         if (!item.title) {            // shit happens: if a content part contains a markup            // element only, String.clip() will return nothing...            if (!item.text)               item.title = "...";            else               item.title = story.getRenderedContentPart("text").stripTags().clip(25);         }         items.append(story.renderSkinAsString("rssItem", item));         resources.append(story.renderSkinAsString("rssResource", item));      }      var site = {         subtitle: subtitle,         url: this.href(),         title: systitle,         creator: this.creator.name,         year: now.getFullYear(),         lastupdate: max > 0 ? sdf.format(this.lastUpdate): sdf.format(this.createtime),         items: items.toString(),         resources: resources.toString()      };      if (this.email)         site.email = this.email.entitize();      else if (this.creator.publishemail)         site.email = this.creator.email.entitize();      this.renderSkin("rss", site);   }   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/5e10032a0240f0a7b09ba43c2799256595d55a94/actions.js/buggy/code/Site/actions.js