Fix Telegram code block rendering — remove leading spaces from messages

Telegram Markdown treats lines starting with spaces as preformatted code
blocks. Replaced leading spaces with bullet points and arrows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 14:14:47 -08:00
parent ba4bc9ac03
commit c4e5dbc32a
2 changed files with 10 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ export function formatSearchSummary(added, skipped, platforms, trackCounts = {})
if (Object.keys(trackCounts).length > 0) {
lines.push('');
for (const [track, counts] of Object.entries(trackCounts)) {
lines.push(` • *${track}*: ${counts.added} new / ${counts.found} found`);
lines.push(`• *${track}*: ${counts.added} new / ${counts.found} found`);
}
}
return lines.join('\n');
@@ -130,8 +130,8 @@ export function formatApplySummary(results) {
lines.push(`${emoji} *${label}:*`);
for (const j of jobs) {
const shortUrl = (j.url || '').replace(/^https?:\/\/(?:www\.)?/, '').replace(/\/$/, '');
lines.push(` ${j.title} @ ${j.company}`);
if (shortUrl) lines.push(` ${shortUrl}`);
lines.push(`${j.title} @ ${j.company}`);
if (shortUrl) lines.push(`${shortUrl}`);
}
}
@@ -151,7 +151,7 @@ export function formatFilterSummary({ passed, filtered, errors, cost, topJobs =
if (topJobs.length > 0) {
lines.push('', '*Top scores:*');
for (const j of topJobs.slice(0, 5)) {
lines.push(` ${j.score}${j.title} @ ${j.company}`);
lines.push(`${j.score}${j.title} @ ${j.company}`);
}
}
return lines.join('\n');