View Single Post
Old 06-09-2011, 11:09 AM   #11
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by anamardoll View Post
It really should be possible to automate the process - there's a finite number of ways to set margins, font, and font size in code, so automating a search-and-change process should not be impossible.
But some margins are useful, and others are not. For instance, having a margin above and below a poetry fragment or an illustration is good, but the same margin for every paragraph might not be your cup of tea (it's not mine).

And then, what if the code has this:

Code:
.text { margin: 1em 0; }

<p class="text">Some normal text</p>

<div class="text"><img src="image.png" alt=""/></div>

<p class="text">More normal text</p>
and that's even allowing that paragraphs are marked with <p> and other blocks with <div>, which is often not the case...
Jellby is offline   Reply With Quote