From f0b5e042588c2b9d9f3e5e2ceafabe1ab7ff97ae Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Tue, 2 Feb 2016 11:38:32 +0100 Subject: [PATCH] document splitAttributionLines --- src/static/js/Changeset.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/static/js/Changeset.js b/src/static/js/Changeset.js index 2e9e5cf32..bdb57954d 100644 --- a/src/static/js/Changeset.js +++ b/src/static/js/Changeset.js @@ -1261,6 +1261,15 @@ exports.joinAttributionLines = function (theAlines) { return assem.toString(); }; +/** + * Splits attribution operations so that every line in the text has its own attribution string + * It needs text to find the position of newlines + * + * @param attrOps The attribute string + * @param text content + * @returns lines {Array} one attribution string for every line + */ +} exports.splitAttributionLines = function (attrOps, text) { var iter = exports.opIterator(attrOps); var assem = exports.mergingOpAssembler();