ep_citation
Advanced tools
Comparing version 0.0.3 to 0.0.4
17
index.js
@@ -35,4 +35,4 @@ var eejs = require('ep_etherpad-lite/node/eejs/'); | ||
// line, apool,attribLine,text | ||
exports.getLineHTMLForExport = function (hook, line) { | ||
var contextV = _analyzeLine(line.attribLine, line.apool); | ||
exports.getLineHTMLForExport = function (hook, context) { | ||
var contextV = _analyzeLine(context.attribLine, context.apool); | ||
@@ -43,3 +43,4 @@ // If it has a context | ||
}else{ | ||
return line.lineContent + "<br>"; | ||
context.lineContent = context.lineContent + "<br>"; | ||
return true; | ||
} | ||
@@ -82,6 +83,8 @@ | ||
// Remove leading * else don't.. | ||
var newString = before + line.lineContent.substring(1) + after + "<br>"; | ||
return newString; | ||
}else{ // no context, nothing to remove | ||
return line.lineContent; | ||
if (context.lineContent[0] === '*') { | ||
context.lineContent = context.lineContent.substring(1) | ||
} | ||
context.lineContent = before + context.lineContent + after + "<br>"; | ||
return true; | ||
} | ||
@@ -88,0 +91,0 @@ } |
{ | ||
"description": "Citations for Etherpad Documents, very WIP.", | ||
"name": "ep_citation", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"author": { | ||
@@ -17,3 +17,3 @@ "name": "John McLear", | ||
}, | ||
"license" : "Apache-2.0" | ||
"license": "Apache-2.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24034
12
398