Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit bd8c297c authored by Vidjil Team's avatar Vidjil Team

segmenter.js: properly align .seq when it is given from a .vidjil file

parent 4019cd31
......@@ -898,8 +898,11 @@ Sequence.prototype = {
for (var k=0; k<(h.stop - h.start); k++) h.seq += "&nbsp;"
} else {
h.css = "highlight_seq"
// TODO, align the raw_seq using this.pos
h.seq = raw_seq
var j = 0
for (var k=h.start; j<raw_seq.length; k++) { // End condition on j, not on k
if (this.seq[k] != '-') h.seq += raw_seq[j++] ; else h.seq += "&nbsp;"
return h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment