fix: print line height change

This commit is contained in:
2025-04-24 15:30:20 +02:00
parent 7e82e55e52
commit 46a4428389
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ menuRouter.get('/print', async (req, res) => {
</td> </td>
<td>${s.day.getUTCDay() == 5 ? "<b>Kolacja w domu!</b>" : `${usettings.settings.menu.defaultItems.kol.join('<br>')}<br>${s.kol}`}</td> <td>${s.day.getUTCDay() == 5 ? "<b>Kolacja w domu!</b>" : `${usettings.settings.menu.defaultItems.kol.join('<br>')}<br>${s.kol}`}</td>
</tr>`) </tr>`)
var html = `<html><head><meta charset="UTF-8"><style>table,th,td{border: 0.4ch solid;}td{line-height: 1.5;}</style></head><body><table><caption>Jadłospis dekadowy</caption><thead><tr><th>Dzień</th><th>Śniadanie</th><th>Obiad</th><th>Kolacja</th></tr></thead><tbody>${doc.join('\n')}</tbody></table></body></html>` var html = `<html><head><meta charset="UTF-8"><style>table,th,td{border: 0.4ch solid;}td{line-height: 1;}</style></head><body><table><caption>Jadłospis dekadowy</caption><thead><tr><th>Dzień</th><th>Śniadanie</th><th>Obiad</th><th>Kolacja</th></tr></thead><tbody>${doc.join('\n')}</tbody></table></body></html>`
res.type('html').send(html) res.type('html').send(html)
} else { } else {
res.status(400).end() res.status(400).end()

View File

@@ -26,7 +26,7 @@ class UOptions {
} }
private save() { private save() {
writeFileSync("./config/usettings.json", JSON.stringify(this.settings, undefined, 2)) writeFileSync("./config/usettings.json", JSON.stringify(this._settings, undefined, 2))
} }
reload() { reload() {