10bbc65a43d710efac615595bb6b5e4dce4cd3ae
max
  Thu May 2 12:02:39 2013 -0700
correcting weird case where file desc is empty
diff --git src/hg/hgc/pubs.c src/hg/hgc/pubs.c
index 906e3c0..d7fed2f 100644
--- src/hg/hgc/pubs.c
+++ src/hg/hgc/pubs.c
@@ -759,30 +759,32 @@
     if (stringIn("yif", articleSource) && isEmpty(locString)) {
         foundSkippedRows = TRUE;
         continue;
     }
 
     if (fasta)
         printf(">%s<br>%s<br>", annotId, seq);
     else
         {
         web2StartRow();
 
         // column 1: type of file (main or supp)
         if (showDesc) 
             {
             char linkStr[4096];
+            if (isEmpty(fileDesc))
+                fileDesc = "main text";
             safef(linkStr, sizeof(linkStr), "<a href=\"%s\">%s</a>", fileUrl, fileDesc);
             web2PrintCellS("word-break:break-all", linkStr);
             }
         
         // column 2: snippet
         web2StartCellS("word-break:break-all");
         if (stringIn("yif", articleSource))
             removeFlank(snippet);
         printAddWbr(snippet, 40);
         web2EndCell();
 
         // optional debug info column
         if (pubsDebug) 
             //web2PrintCellF("article %s, file %s, seq %s, annotId %s", artId, fileId, seqId, annotId);
             web2PrintCellF("annotId %s", annotId);