aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/serve.js b/lib/serve.js
index c35d4c9..023fcc5 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -5026,8 +5026,9 @@ Serve.prototype.textEditDiffTable = function (oldMsg, newMsg) {
var newText = String(newC.text || newC.description || '')
var diff = Diff.structuredPatch('', '', oldText, newText)
var self = this
+ // note: this structure is duplicated in lib/serve.js
return pull(
- ph('table', [
+ ph('table', {class: 'diff-table'}, [
pull(
pull.values(diff.hunks),
pull.map(function (hunk) {
@@ -5036,7 +5037,7 @@ Serve.prototype.textEditDiffTable = function (oldMsg, newMsg) {
return [
ph('tr', [
ph('td', {colspan: 2}),
- ph('td', ph('pre',
+ ph('td', {colspan: 2}, ph('pre',
'@@ -' + oldLine + ',' + hunk.oldLines + ' ' +
'+' + newLine + ',' + hunk.newLines + ' @@'))
]),
@@ -5053,8 +5054,8 @@ Serve.prototype.textEditDiffTable = function (oldMsg, newMsg) {
lineNums.map(function (num, i) {
return ph('td', String(num))
}),
- ph('td', [
- ph('code', s),
+ ph('td', {class: 'diff-sigil'}, ph('code', s)),
+ ph('td', {class: 'diff-line'}, [
u.unwrapP(self.app.render.markdown(line.substr(1),
s == '-' ? oldC.mentions : newC.mentions))
])