incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r819509 - in /incubator/esme/trunk/server: pom.xml src/main/scala/org/apache/esme/model/Message.scala
Date Mon, 28 Sep 2009 12:27:11 GMT
Author: vdichev
Date: Mon Sep 28 12:27:10 2009
New Revision: 819509

URL: http://svn.apache.org/viewvc?rev=819509&view=rev
Log:
Format messages with textile markup

Modified:
    incubator/esme/trunk/server/pom.xml
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala

Modified: incubator/esme/trunk/server/pom.xml
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/pom.xml?rev=819509&r1=819508&r2=819509&view=diff
==============================================================================
--- incubator/esme/trunk/server/pom.xml (original)
+++ incubator/esme/trunk/server/pom.xml Mon Sep 28 12:27:10 2009
@@ -107,6 +107,11 @@
       <artifactId>lift-openid</artifactId>
       <version>${lift.version}</version>
     </dependency>
+    <dependency>
+      <groupId>net.liftweb</groupId>
+      <artifactId>lift-textile</artifactId>
+      <version>${lift.version}</version>
+    </dependency>
     <!--
 	<dependency>
 	  <groupId>com.socialmaterial</groupId>

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala?rev=819509&r1=819508&r2=819509&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/model/Message.scala Mon Sep
28 12:27:10 2009
@@ -27,6 +27,7 @@
 import http.js._
 import Helpers._
 import java.util.logging._
+import textile.TextileParser
 
 import scala.xml._
 
@@ -294,6 +295,8 @@
               <xml:group> <a href={"/u/"+id}>{url}</a> </xml:group>)).
           getOrElse(Text("") )
 
+        case t: Text => TextileParser.toHtml(t.toString)
+
         case x => x
       })
   }



Mime
View raw message