fix(pdf): preserve accented names in revised CV and letter headings
This commit is contained in:
@@ -26,7 +26,9 @@ async function main() {
|
||||
const rows = [];
|
||||
try {
|
||||
for (const fixture of fixtures) {
|
||||
assert.match(fixture.fixture, /^(?:short-en|medium-nb|long-en|dense-nb)-[a-z-]+$/);
|
||||
const html = fs.readFileSync(path.join(source, fixture.fixture, 'render.html'));
|
||||
assert.ok(html.length <= 8 * 1024 * 1024, 'Excessive synthetic HTML');
|
||||
await page.setContent(copy.exports.previewDocumentHtml(html.toString('utf8'), 297 * 96 / 25.4));
|
||||
await page.waitForFunction(() => document.documentElement.dataset.cvPreviewReady === 'true');
|
||||
const measured = await page.evaluate(() => {
|
||||
|
||||
Reference in New Issue
Block a user