mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2025-09-09 07:28:43 +00:00
Merge pull request #26 from PR0M3TH3AN/codex/fix-line-breaks-in-text-content
Fix newline display in flyer text
This commit is contained in:
@@ -172,6 +172,7 @@
|
|||||||
font-family: 'Courier New', Courier, monospace;
|
font-family: 'Courier New', Courier, monospace;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
white-space: pre-wrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
@@ -443,7 +444,8 @@
|
|||||||
document.getElementById('operation-title-2').innerText = config.headline;
|
document.getElementById('operation-title-2').innerText = config.headline;
|
||||||
|
|
||||||
// Update the main content
|
// Update the main content
|
||||||
document.getElementById('main-content').innerText = config.content;
|
document.getElementById('main-content').innerText =
|
||||||
|
config.content.replace(/\\n/g, '\n');
|
||||||
|
|
||||||
// Update the URL message
|
// Update the URL message
|
||||||
document.querySelectorAll('.url-message').forEach(msg => {
|
document.querySelectorAll('.url-message').forEach(msg => {
|
||||||
|
Reference in New Issue
Block a user