Tuesday, September 09, 2008 #

Windows Live Writer and Line Return Weirdness

The other day, when I started posting my first few posts, I was getting some weirdness in Windows Live Writer as it pertains to carriage returns.  For example, when typing a post in Live Writer, a single line return appeared to be placing 3 line returns visually.  The end result was a really spaced out looking blog post that just seemed strange to me while I was writing.

This problem produced two results:

a) When publishing my post, I noticed that on the live site, the line returns were showing up as one, not three

b) The line returns were actually showing up at 3 in my feedburner RSS feed

This really stumped me because I took at look at Live Writer settings, Subtext settings in general, and a lot of other things that did not really lead me down to a resolution.

It took a while to figure out what was going on but with some help from the guys at Subtext (Steven Harman), it was narrowed down to a single CSS tag in my custom CSS file that was somehow conflicting with Live Writer after I had customized an out-of-box Subtext Skin. 

The problem ended up being that I had the following tag defined in my stylesheet:

p { 
margin:0; 
} 

I did not need that style, so I actually took it completely out.  Not sure why I had it in there but obviously needed it at some time in the past.

So by changing up a primary html tag like this, it was conflicting with the ability of Live Writer to accurately publish paragraphs somehow in my actual posts.  Since Live Writer does take in account your skin and therefore stylesheet, it was definitely causing this issue.

posted @ Tuesday, September 09, 2008 11:03 PM | Feedback (0)