From 2bcc5f0d7f87c2c46878afe361112ae8e14c53f1 Mon Sep 17 00:00:00 2001 From: Petr Danecek Date: Fri, 11 Dec 2009 09:36:18 +0000 Subject: [PATCH] Allow tabs in the CO header field --- sam_header.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sam_header.c b/sam_header.c index a119c02..3879f3f 100644 --- a/sam_header.c +++ b/sam_header.c @@ -345,7 +345,11 @@ static HeaderLine *sam_header_line_parse(const char *headerLine) while (*to && *to!='\t') to++; if ( !required_tags[itype] && !optional_tags[itype] ) + { + // CO is a special case, it can contain anything, including tabs + if ( *to ) { to++; continue; } tag = new_tag(" ",from,to-1); + } else tag = new_tag(from,from+3,to-1); -- 2.39.5