import net.sourceforge.phpeclipse.wiki.preferences.Util;
 import net.sourceforge.phpeclipse.wiki.renderer.IContentRenderer;
 import net.sourceforge.phpeclipse.wiki.renderer.RendererFactory;
+import net.sourceforge.phpeclipse.wiki.renderer.StringUtil;
 
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IResource;
   public void selectionChanged(IAction action, ISelection selection) {
   }
 
-  public static void createFragmentPage(IFile file, StringBuffer htmlBuffer) {
+  public static boolean createFragmentPage(IFile file, StringBuffer htmlBuffer) {
     BufferedInputStream stream = null;
+    boolean noContent = true;
     try {
 //      String templateFileName = Util.getLocalTemplate(file);
       //    String cssUrl = Util.getLocalCssUrl(file);
 
       String fileName = Util.getHTMLFileName(file, binBasePath, srcBasePath);
       String content = new String(getInputStreamAsCharArray(stream, -1, "utf-8"));
+      noContent = StringUtil.checkNoContent(content);
       String filePath = file.getLocation().toString(); // file.getProjectRelativePath().toString()
       if (filePath.startsWith(srcBasePath)) {
         filePath = filePath.substring(srcBasePath.length() + 1);
       } catch (IOException e) {
       }
     }
-
+    return noContent;
   }
 
   public static void createPage(IFile file) {