fix(cv): bind letter proposals to current sources and preserve document choices

This commit is contained in:
cesnimda
2026-10-26 03:44:37 +01:00
parent 8948c988e2
commit 8979244576
21 changed files with 816 additions and 32 deletions
@@ -32,7 +32,7 @@ public sealed class CoverLetterDocumentRenderer
if (list) body.Append("</ul>");
var contact = string.Join(" · ", new[] { s.SenderEmail, s.SenderPhone, s.SenderLocation }.Where(v => !string.IsNullOrWhiteSpace(v)).Select(E));
var html = $$"""
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8">
<!DOCTYPE html><html lang="{{E(s.Language)}}"><head><meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; font-src data:; base-uri 'none'">
<title>{{E(s.Subject)}} — {{E(s.SenderName)}}</title><style>
{{CvDocumentFonts.Embed(font)}}