one more fix for method source and newlines

This commit is contained in:
rolux 2011-05-06 20:10:45 +02:00
parent 72d3ec87c2
commit 1ef127d8f4

View file

@ -226,7 +226,8 @@ Ox.doc = (function() {
lastItem = items[items.length - 1]; lastItem = items[items.length - 1];
lastItem.properties = lastItem.properties || []; lastItem.properties = lastItem.properties || [];
lastItem.properties.push(item); lastItem.properties.push(item);
lastItem.source = Ox.merge(lastItem.source, item.source); lastItem.source = Ox.merge(lastItem.source, tokenBuffer, item.source);
delete item.source;
} }
}); });
function decodeLinebreaks(match, submatch) { function decodeLinebreaks(match, submatch) {