07-02-2025, 07:49 AM
(07-01-2025, 10:29 PM)adaml Wrote: Thanks. It looks like in CSS I could apply "white-space: pre-wrap;" to the whole document. I'll need to see how it responds in different readers and software before committing to it. Thanks for explaining what's happening!
Yes, that should work. In Freda, I got reasonable results with:
Code:
<HTML>
<HEAD>
<meta charset="utf-8">
<style>
.white {
white-space: pre-wrap;
}
</style>
<TITLE>Poetry Layout Test</TITLE>
</HEAD>
<BODY>
<div class="white">
A sentence with single spacing
A sentence with double spacing
A sentence with triple spacing
A sentence with a gap above it
</div>
</BODY>
</HTML>
I say 'reasonable' because in fact Freda was then being so assiduous about preserving whitespace that it also preserved the new-line characters, which meant that little white squares were appearing at the end of each line. That's a bug really! I'm planning a bug fix release for Freda in the next week or so, and in that update I will fix this, so those ugly little squares won't appear any more.