From 126e8d40e9d671caacdf093fd1a1a06d0930554b Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Mon, 14 Feb 2011 16:10:25 +0100 Subject: [PATCH] added lf2p filter and use it to format abstracts --- public/app/drzb2011/abstracts.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/app/drzb2011/abstracts.html b/public/app/drzb2011/abstracts.html index 2390727..89f9a45 100644 --- a/public/app/drzb2011/abstracts.html +++ b/public/app/drzb2011/abstracts.html @@ -20,6 +20,11 @@ function Registrations(xhr){ } +angular.filter('lf2p', function(input) { + if ( input && input.length ) + return input.replace(/\n/g,"

"); +}); + DRZB2011 Registrations @@ -114,7 +119,7 @@ Odabir:

{{author.name}} {{author.surname}}
{{author.inst}}
-
{{registration.work.abstract}}
+
{{registration.work.abstract | lf2p | html}}
{{registration._id}}
-- 2.20.1