diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js
index c41ed2e83..72fd8f0d4 100644
--- a/www/common/diffMarked.js
+++ b/www/common/diffMarked.js
@@ -271,25 +271,24 @@ define([
var bogusUncheckPtn = //;
renderer.listitem = function (text) {
var icon = '';
- var body = text;
if (checkedTaskItemPtn.test(text)) {
icon = taskIconChecked;
- body = text.replace(checkedTaskItemPtn, '');
+ text = text.replace(checkedTaskItemPtn, '');
} else if (uncheckedTaskItemPtn.test(text)) {
icon = taskIconUnchecked;
- body = text.replace(uncheckedTaskItemPtn, '');
+ text = text.replace(uncheckedTaskItemPtn, '');
} else if (bogusCheckPtn.test(text)) {
icon = taskIconChecked;
- body = text.replace(bogusCheckPtn, '');
+ text = text.replace(bogusCheckPtn, '');
} else if (bogusUncheckPtn.test(text)) {
icon = taskIconUnchecked;
- body = text.replace(bogusUncheckPtn, '');
+ text = text.replace(bogusUncheckPtn, '');
} else {
return '
' + text + '\n';
}
- body = body.replace(/^\s+/, '').replace(/^(]*>)\s+/i, '$1');
+ text = text.replace(/^\s+/, '').replace(/^(
]*>)\s+/i, '$1');
return '
' + icon +
- '' + body + '
\n';
+ '' + text + '
\n';
};
restrictedRenderer.listitem = function (text) {
if (bogusCheckPtn.test(text)) {
diff --git a/www/profile/inner.js b/www/profile/inner.js
index 9bb095f3c..ebf789f46 100644
--- a/www/profile/inner.js
+++ b/www/profile/inner.js
@@ -71,25 +71,24 @@ define([
var bogusUncheckPtn = //;
renderer.listitem = function (text) {
var icon = '';
- var body = text;
if (checkedTaskItemPtn.test(text)) {
icon = taskIconChecked;
- body = text.replace(checkedTaskItemPtn, '');
+ text = text.replace(checkedTaskItemPtn, '');
} else if (uncheckedTaskItemPtn.test(text)) {
icon = taskIconUnchecked;
- body = text.replace(uncheckedTaskItemPtn, '');
+ text = text.replace(uncheckedTaskItemPtn, '');
} else if (bogusCheckPtn.test(text)) {
icon = taskIconChecked;
- body = text.replace(bogusCheckPtn, '');
+ text = text.replace(bogusCheckPtn, '');
} else if (bogusUncheckPtn.test(text)) {
icon = taskIconUnchecked;
- body = text.replace(bogusUncheckPtn, '');
+ text = text.replace(bogusUncheckPtn, '');
} else {
return '' + text + '\n';
}
- body = body.replace(/^\s+/, '').replace(/^(]*>)\s+/i, '$1');
+ text = text.replace(/^\s+/, '').replace(/^(
]*>)\s+/i, '$1');
return '
' + icon +
- '' + body + '
\n';
+ '' + text + '
\n';
};
var DISPLAYNAME_ID = "cp-app-profile-displayname";