fix: print line height change
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user