mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
remove duplicate code to the best of my ability right now
This commit is contained in:
parent
28f6d50011
commit
60ef5f210a
2 changed files with 15 additions and 137 deletions
|
@ -92,6 +92,7 @@ function getPadHTML(pad, revNum, callback)
|
|||
|
||||
exports.getPadHTML = getPadHTML;
|
||||
exports.getHTMLFromAtext = getHTMLFromAtext;
|
||||
exports.getPadPlainText = getPadPlainText;
|
||||
|
||||
function getHTMLFromAtext(pad, atext, authorColors)
|
||||
{
|
||||
|
@ -542,6 +543,8 @@ function _analyzeLine(text, aline, apool)
|
|||
return line;
|
||||
}
|
||||
|
||||
exports._analyzeLine = _analyzeLine;
|
||||
|
||||
exports.getPadHTMLDocument = function (padId, revNum, noDocType, callback)
|
||||
{
|
||||
padManager.getPad(padId, function (err, pad)
|
||||
|
@ -584,10 +587,9 @@ function _encodeWhitespace(s) {
|
|||
return "&#" +c.charCodeAt(0) + ";"
|
||||
});
|
||||
}
|
||||
exports._encodeWhitespace = _encodeWhitespace;
|
||||
|
||||
// copied from ACE
|
||||
|
||||
|
||||
function _processSpaces(s)
|
||||
{
|
||||
var doesWrap = true;
|
||||
|
@ -651,6 +653,7 @@ function _processSpaces(s)
|
|||
return parts.join('');
|
||||
}
|
||||
|
||||
exports._processSpaces = _processSpaces;
|
||||
|
||||
// copied from ACE
|
||||
var _REGEX_WORDCHAR = /[\u0030-\u0039\u0041-\u005A\u0061-\u007A\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u1FFF\u3040-\u9FFF\uF900-\uFDFF\uFE70-\uFEFE\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFDC]/;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue