Don't collapse whitespace in csledit/cslpreview
This commit is contained in:
parent
c63ac47fda
commit
572167fe7d
|
@ -132,9 +132,10 @@
|
|||
// Generate bibliography
|
||||
var bibliography = '<hr/><h1>Bibliography</h1>' +
|
||||
csl.formatBibliography(itemSet, "HTML");
|
||||
iframe.contentDocument.documentElement.innerHTML =
|
||||
citations +
|
||||
multCitations + bibliography;
|
||||
iframe.contentDocument.documentElement.innerHTML =
|
||||
'<div style="white-space: pre">'
|
||||
+ citations + multCitations + bibliography
|
||||
+ '</div>';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -133,7 +133,8 @@
|
|||
|
||||
// Generate bibliography
|
||||
var bibliography = '<p>' + csl.formatBibliography(itemSet, "HTML");
|
||||
return citations + bibliography;
|
||||
return '<div style="white-space: pre">' +
|
||||
citations + bibliography + '</div>';
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user