From 327af0e93d5ab39597177bddde0c1a28b16f200e Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Feb 2013 23:51:53 -0500 Subject: [PATCH] fixes to note fonts --- app/logical/d_text.rb | 2 +- app/views/notes/_note.html.erb | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/logical/d_text.rb b/app/logical/d_text.rb index c676ab8a1..92af35faf 100644 --- a/app/logical/d_text.rb +++ b/app/logical/d_text.rb @@ -181,7 +181,7 @@ class DText def self.sanitize(text) Sanitize.clean( text, - :elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i), + :elements => %w(tn h1 h2 h3 h4 h5 h6 a span div blockquote br p ul li ol em strong small b i font), :attributes => { "a" => %w(href title style), "span" => %w(class style), diff --git a/app/views/notes/_note.html.erb b/app/views/notes/_note.html.erb index 81e9bcd3c..b152dc650 100644 --- a/app/views/notes/_note.html.erb +++ b/app/views/notes/_note.html.erb @@ -1,3 +1 @@ -
- <%= raw DText.sanitize(note.body) %> -
\ No newline at end of file +
<%= raw DText.sanitize(note.body) %>
\ No newline at end of file