Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

Formatting Comments Correctly

You can see from Matt's comments on my last post that my handy-dandy comments feature is not formatting comments correctly. Basically, if you put a line break in the textarea below (by pressing return), there should be a line break (<br />) in the rendered comment. The reason this is broken seems to be because the following Velocity code doesn't seem to be functioning correctly:

#set($content = $comment.content)
#if($escapeHtml)
    #set($content = $utilities.escapeHTML($content))
#end
#if($autoformat) 
    #set($content = $stringUtils.replace($content,"\n","<br />"))
#end

You'll notice that it's not working on my in-page comments either. But it is working for the pop-up comments. However, the pop-up one is doing the StringUtils.replace in Java code, rather than Velocity. Hopefully someone will have a tip for me to fix this.

Posted in Roller at May 09 2003, 08:13:38 AM MDT 4 Comments
Comments:

I'm pretty sure that is fixed in the 097 branch and will be in 0.9.7.2 (this weekend).

Posted by Dave Johnson on May 09, 2003 at 05:31 PM MDT #

Cool! Are you going to integrate twisty comments into that branch?

Posted by Matt Raible on May 09, 2003 at 05:58 PM MDT #

I had the same problem, and now I have the tip check this url: http://www.jroller.com/page/jigi/20050601#jroller_comment_formatting Hope this helps :-) Regards. Luigi

Posted by Luigi R. Viggiano on June 01, 2005 at 03:33 PM MDT #

???????, ???? ??MP3 ????. http://seo-vip.com/cn.php

Posted by sdf on September 25, 2006 at 08:43 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed