fix: page renders with initial linebreak

This commit is contained in:
koehr 2023-12-10 16:19:48 +01:00 committed by Norman Köhring
parent d076899045
commit 98a03dc4b3

View file

@ -60,7 +60,7 @@ onMounted(() => {
function handlePageChange() { function handlePageChange() {
const { title, headerArt, content, uris } = getCurrentPage(page.value.title) const { title, headerArt, content, uris } = getCurrentPage(page.value.title)
addText(`${headerArt}\n${title}\n\n${content}`) addText(`\n${headerArt}\n${title}\n\n${content}`)
setFooter(uris) setFooter(uris)
} }
@ -71,6 +71,7 @@ onMounted(() => {
footerLinks, footerLinks,
setFooter setFooter
} = useTerminal(textArea.value, commands.value, pages, handlePageChange) } = useTerminal(textArea.value, commands.value, pages, handlePageChange)
handlePageChange() handlePageChange()
watch(footerLinks, () => { watch(footerLinks, () => {