resolve an issue with icon list text formatting (fixes #511)

This commit is contained in:
rlx 2012-02-18 06:59:34 +00:00
parent ab6c1f2234
commit 65a3a21d11

View file

@ -55,6 +55,7 @@ Ox.IconItem = function(options, self) {
});
self.title = formatText(self.options.title, self.lines - 1 - self.infoIsObject, self.lineLength);
Ox.print('ST::::', self.title)
if (!self.infoIsObject) {
self.info = formatText(self.options.info, 5 - self.title.split('<br/>').length, self.lineLength);
} else {
@ -174,9 +175,9 @@ Ox.IconItem = function(options, self) {
} else {
return null;
}
}).join(' <br>'),
}).join(' <br/>'),
self.options.find, 'OxHighlight', ['br']
).replace(/ (<.*?>)?<br>/g, '$1<br>');
).replace(/ (<.*?>)?<br\/>/g, '$1<br\/>');
}
function load() {