diff -r 510ebab76fa3 -r 029a4efe9e24 src/widgets/Segments.js
--- a/src/widgets/Segments.js Fri May 18 18:23:51 2012 +0200
+++ b/src/widgets/Segments.js Mon May 21 13:17:47 2012 +0200
@@ -42,9 +42,10 @@
segments : _list.map(function(_annotation, _k) {
var _left = _annotation.begin * _scale,
_width = ( _annotation.end - _annotation.begin ) * _scale,
- _center = _left + _width / 2;
+ _center = _left + _width / 2,
+ _fulltext = _annotation.title + ( _annotation.description ? ( '
' + _annotation.description ) : '' );
return {
- text : _annotation.title + ( _annotation.description ? '
' + _annotation.description.replace(/(^.{120,140})[\s].+$/,'$1…') : ''),
+ text : _fulltext.replace(/(^.{120,140})[\s].+$/,'$1…'),
color : ( typeof _annotation.color !== "undefined" && _annotation.color ? _annotation.color : _this.colors[_k % _this.colors.length] ),
beginseconds : _annotation.begin.getSeconds() ,
left : Math.floor( _left ),