manuscript: fix a quote in the report

This commit is contained in:
gator 2026-09-22 00:21:35 +00:00
parent dd5eae01f7
commit 54ef998e14

View file

@ -323,7 +323,7 @@
var r = await api("adapt_report", { adaptation_id: AID, chapter: CH.n });
if (!r.ok) { msg(r.error); return; }
REPORT = r;
var people = Object.keys(r.by_person || {}).map(function (k) { var v = r.by_person[k]; return '<li><b>' + esc(k.replace(/^human:/, "").replace(/^sim:/, "")) + '</b>' + (/^sim:/.test(k) ? ' <span class="tiny">(entries made by the assistant at this person's instruction, as a simulation)</span>' : '') + ' &mdash; ' + v.decisions + ' creative decisions, ' + v.rewrites + ' rewrites, ' + v.kept + ' kept as written, ' + v.flags + ' flagged, ' + v.reverts + ' put back</li>'; }).join("");
var people = Object.keys(r.by_person || {}).map(function (k) { var v = r.by_person[k]; return '<li><b>' + esc(k.replace(/^human:/, "").replace(/^sim:/, "")) + '</b>' + (/^sim:/.test(k) ? ' <span class="tiny">(entries made by the assistant at this person&rsquo;s instruction, as a simulation)</span>' : '') + ' &mdash; ' + v.decisions + ' creative decisions, ' + v.rewrites + ' rewrites, ' + v.kept + ' kept as written, ' + v.flags + ' flagged, ' + v.reverts + ' put back</li>'; }).join("");
$("report").innerHTML = '<p><b>' + esc(r.adaptation.title) + '</b> by ' + esc(r.adaptation.author) + ' &middot; ' + esc(r.adaptation.source) + (r.adaptation.edition ? '<br><span class="tiny">' + esc(r.adaptation.edition) + '</span>' : '') + '<br><span class="tiny">source fingerprint ' + esc(r.adaptation.source_sha256) + ' &middot; record chain ' + (r.chain_ok ? 'intact' : 'BROKEN at ' + r.chain_broken_at) + ' &middot; made ' + esc(when(r.made_at)) + '</span></p>'
+ '<h3>Chapter ' + r.chapter.n + ' &mdash; ' + esc(r.chapter.title) + '</h3><p class="tiny">' + r.chapter.changed + ' of ' + r.chapter.paragraphs + ' paragraphs changed &middot; ' + r.chapter.words_original + ' words in the source, ' + r.chapter.words_final + ' now</p>'
+ '<h3>By person</h3><ul>' + (people || '<li class="tiny">nobody yet</li>') + '</ul>'