Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spaces in Poetry
#4
(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.
Reply


Messages In This Thread
Spaces in Poetry - by adaml - 07-01-2025, 04:51 PM
RE: Spaces in Poetry - by jim_chapman - 07-01-2025, 09:38 PM
RE: Spaces in Poetry - by adaml - 07-01-2025, 10:29 PM
RE: Spaces in Poetry - by jim_chapman - 07-02-2025, 07:49 AM
RE: Spaces in Poetry - by adaml - 07-03-2025, 07:41 AM
RE: Spaces in Poetry - by jim_chapman - 07-03-2025, 04:01 PM
RE: Spaces in Poetry - by adaml - 07-03-2025, 04:45 PM
RE: Spaces in Poetry - by jim_chapman - 07-17-2025, 08:16 AM
RE: Spaces in Poetry - by adaml - 07-17-2025, 04:58 PM
RE: Spaces in Poetry - by jim_chapman - 07-18-2025, 07:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)