]> git.donarmstrong.com Git - samtools.git/commitdiff
fix html
authorlindenb <plindenbaum@yahoo.fr>
Fri, 25 Jan 2013 14:29:08 +0000 (15:29 +0100)
committerlindenb <plindenbaum@yahoo.fr>
Fri, 25 Jan 2013 14:29:08 +0000 (15:29 +0100)
bam_tview_html.c

index 8ab3e8a3e04ff8de9ebead34d7b0f5a2ca90a18a..f52b4c3c7ae0f3a58d8cb412966f3e7e1cb100d4 100644 (file)
@@ -154,17 +154,16 @@ static int html_drawaln(struct AbstractTview* tv, int tid, int pos)
                if(x== 0 || ptr->screen[y][x].attributes != ptr->screen[y][x-1].attributes)
                        {
                        int css=0;
-
+                       fprintf(ptr->out,"<span");
                        while(css<32)
                                {
                                //if(y>1) fprintf(stderr,"css=%d pow2=%d vs %d\n",css,(1 << (css)),ptr->screen[y][x].attributes);
                                if(( (ptr->screen[y][x].attributes) & (1 << (css)))!=0)
                                        {
                                        
-                                       fprintf(ptr->out," class='tviewc%s%d",
+                                       fprintf(ptr->out," class='tviewc%s%d'",
                                                (( (ptr->screen[y][x].attributes) & (1 << (UNDERLINE_FLAG)) )!=0?"u":""),
                                                css);
-                                       fputs("'",ptr->out);
                                        break;
                                        }
                                ++css;