9af1caee1ee0bcaf9abdeb6436ec80e52f809622 braney Sat Feb 22 17:45:11 2014 -0800 fix a bug that caused the first letter of some sequence names to bechopped off. diff --git src/hg/lib/lav.c src/hg/lib/lav.c index 8ec6cfe..8cca378 100644 --- src/hg/lib/lav.c +++ src/hg/lib/lav.c @@ -69,31 +69,33 @@ *isRc = FALSE; for (i=0; ; ++i) { if (!lineFileNext(lf, &line, NULL)) unexpectedEof(lf); if (line[0] == '#') continue; if (line[0] == '}') { if (i < 2) errAbort("Short H stanza line %d of %s", lf->lineIx, lf->fileName); break; } word = needNextWord(lf, &line); - word += 2; /* Skip over "> */ + word++; /* Skip over `"' and optional `>' */ + if (*word == '>') + word++; e = strchr(word, '"'); if (e != NULL) { *e = 0; if (line != NULL) ++line; } if (i == 0) *tName = cloneString(justChrom(word)); else if (i == 1) *qName = cloneString(justChrom(word)); if ((line != NULL) && (stringIn("(reverse", line) != NULL)) *isRc = TRUE; } }