One Line

So we've spent *hours* on this problem. The problem of how to display a notes richtext field as html. For the most part the data we have is just plain text, but with carriage returns that don't render if you just display them (since carriage returns without <br> tags are ignored by browers). We looked at buying Midas. We tried using a mime conversion script we found on the web. Nothing was easy. And we were working with lotusscript which is messy at the best of times, and Jim didn't know off hand how to convert line breaks to <br> tags. So today I was thinking more about the problem because go-live is next week and we're still no closer to solving it. So I wondered how i could do what I wanted to do in formula language. And I solved a decent chunk of our problems with one line of code:

@ReplaceSubString(@Text(Body);@Newline;"<br>")

It was enough to make me want to give up and go home. Or at least drink and shoot people :)