View Single Post
Old 05-19-2015, 03:56 PM   #18
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,465
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by eschwartz View Post
HTML ignores spaces between tags. beautify/pretty print algorithms routinely reindent the structure in order to create that exact return -- as well as many more -- with absolutely no effect on rendered layout.


Chances are it is like theducks said.
Years of experience with generating HTML tells me that whitespace between tags is not ignored, but is instead collapsed. I can't count the number of times that I had to remove returns from the HTML to avoid extra spacing between elements. Google also agrees with me, with zillions of pages talking about how to avoid the extra spaces introduced by line feeds by setting various font properties on the body tag and putting the tag closing > on the next line. And in any event, the space I was referring to is not between tags, it is a first class character in the body.

However, I could easily to be wrong now. The world has moved on in the 4 or 5 years since I last did this sort of thing, and the book rendering engines could be special purpose.
chaley is offline   Reply With Quote