dasBlog, RSS and Whitespace

Link. November 14, 2007. Comments [4]. Posted in: Blogging

Does anyone know why the heck dasBlog insists on screwing up whitespace in a post when generating the RSS Feed? It preserves it correctly when it writes out the feed's HTML, but generates RSS that simply removes it at random places, and it's usually the reason why code samples get screwed up so badly. Is there any workaround for this? Anyone else considers this a problem?

Frankly, I'm starting to seriously consider moving to a new blog engine; though I haven't done any tests to see which one would be a good replacement (any recommendations?). I'm not looking forward to a migration, though, and not sure yet that I can provide a way to keep existing URLs intact...



Wednesday, November 14, 2007 11:00:39 AM (SA Pacific Standard Time, UTC-05:00)
I was using Subtext but felt I needed more features faster than Subtext was delivering and needed to get off my home ADSL server which would melt as soon as I wrote anything interesting.

I decided to go with Wordpress which, as a .NET loving PHP disliking developer, was a little hard to swallow but I haven't looked back. There are a large amount of themes and plugins available to do whatever you want and the admin interface is very easy to use.

Migrating wasn't too much of a problem as I was now using Apache and so a handful of lines in the .htaccess and a tweak to the permalink format took care of preserving the links.

Migrating the data wasn't too tricky - Wordpress supports a variety of import formats although the easiest option is probably just to write a program or script that pulls out the entries from SQL Server into Wordpress's own format and thus preserve comments complete with email addresses and ip's which are not normally displayed.

[)amien
Wednesday, November 14, 2007 11:09:29 AM (SA Pacific Standard Time, UTC-05:00)
Thanks for the response, Damien. Yes, I've heard very good things about wordpress, but I was under the impression they only offered the hosted service. Guess I was wrong ;)

I wonder if it's possible to run it on windows (I think my host supports PHP on win32), as I'd rather not have to switch hosting platforms at this time (I have a bunch of other things running on asp.net here). I do hear what you say about apache and .htaccess, as it is indeed a great feature. I guess I could always write yet another httpmodule to force things around, but it's always a drag ;).

As for importing stuff, I can always write a utility that reads dasBlog's xml files (I've done it already in the past, so it shouldn't be too bad). Is the wordpress format documented anywhere? or do they use mysql or other database engine?
Saturday, November 17, 2007 1:22:03 AM (SA Pacific Standard Time, UTC-05:00)
Are you using the copy source as html plugin? If you are I found Dustin Campbell's post on the subject helpful http://diditwith.net/2007/09/19/HowIFormatCodeForTheWebAndRSSFeeds.aspx
Saturday, November 17, 2007 9:31:43 AM (SA Pacific Standard Time, UTC-05:00)
Steven: Yes, I've seen that page, but, frankly, the last thing I want to is to have to go through a ten step manual procedure just to post a couple of code samples! Actually, this was just the first time I've tried using CopySourceAsHtml; for years I had tried and it never worked (and still doesn't work very reliably; there's something about the combination of vista + vpc2007 + winserver2K3R2 that screws the clipboard badly).

The problem, however, isn't with CopySourceAsHtml; it's how dasBlog generates the RSS feed: it will break whitespace, for example by removing extra spaces at the beginning of a line, or removing line breaks altogether, *just* on the RSS feed (not on the HTML generated), and that will break most code formatting tools out there completely. Heck, even doing something as simple as putting a simple piece of code inside <pre><code></code></pre> tag breaks pretty badly!
Comments are closed.

Syndicate

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Ads


Categories

Statistics

Total Posts: 1050
This Year: 1
This Month: 1
This Week: 0
Comments: 825

Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.2.8279.16125

Sign In