Don't collapse whitespace in csledit/cslpreview

This commit is contained in:
Dan Stillman 2008-04-28 19:14:11 +00:00
parent c63ac47fda
commit 572167fe7d
2 changed files with 6 additions and 4 deletions

View File

@ -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>';
}

View File

@ -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>';
}