HTML question - Phil's Rambling Rants
LiveJournal, as opposed to a normal web page, includes the actual new lines that you type between tags when it renders the output. This means that you get a different result depending on whether you type your 'ol' and 'li' entries and their closing variants all on one line or each on its own. (In general, I believe in closing tags, but that may be because I spend far more time with XML than with HTML.)
|Date:||September 11th, 2008 04:01 pm (UTC)|| |
Exactly. LJ includes the line breaks I type, and I don't want additional line breaks forced on me by the HTML tags. Though I confess I wasn't thinking when I put the ol on a separate line from the li in my example; that accounts for one of the unwanted blank lines. I could use the lj-raw tag, but then I'll have to explicitly type some br tags. Bleah. Might be the best I can ask for.
Leaving out the closing tag means I don't get an extra line break. Is it safe?
|Date:||September 11th, 2008 04:03 pm (UTC)|| |
Let's try this (wrapping the "what I want it to look like" in lj-raw, adding one explicit br in the two line item.
Second line of item
|Date:||September 11th, 2008 04:04 pm (UTC)|| |
still an extra blank line before and after the list.
|Date:||September 11th, 2008 04:56 pm (UTC)|| |
That is the best I have found as well. I have not found any way to eliminate the blank lines before and after the list.
I don't know for sure whether it's generally safe. What I was suggesting, I guess, is to accept the HTML-induced line breaks, but remove the literal ones that are typed when composing the message.