Skip to content

Commit c4074fb

Browse files
committed
fixed a bug with oneline manual shelfmarks
1 parent 4a14a49 commit c4074fb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

signaturenDruck/js/printRenderer.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,14 @@ function createPage (format, data, dataMan, file) {
7070
if (Number(formats[format].lines) === 1) {
7171
let p = document.createElement('p')
7272
p.className = 'line_1'
73-
if (config.get('thulbMode')) {
74-
p.innerHTML = linesData[0].split(config.get('newLineAfter')).join(' ')
73+
if (Array.isArray(linesData)) {
74+
if (config.get('thulbMode')) {
75+
p.innerHTML = linesData[0].split(config.get('newLineAfter')).join(' ')
76+
} else {
77+
p.innerHTML = linesData[0]
78+
}
7579
} else {
76-
p.innerHTML = linesData[0]
80+
p.innerHTML = linesData
7781
}
7882
div.appendChild(p)
7983
document.getElementById('toPrint').appendChild(div)

0 commit comments

Comments
 (0)