]> source.dussan.org Git - redmine.git/commitdiff
Accept float in inline styles.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Sep 2012 13:54:04 +0000 (13:54 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 16 Sep 2012 13:54:04 +0000 (13:54 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10396 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redcloth3.rb

index c91c61718a2a8e292e1669d80b96206127f41e28..ee934b6abb52817ffc4b6918c1509f775d18df4a 100644 (file)
@@ -505,7 +505,7 @@ class RedCloth3 < String
         atts
     end
 
-    STYLES_RE = /^(color|width|height|border|background|padding|margin|font|text)(-[a-z]+)*:\s*((\d+%?|\d+px|\d+(\.\d+)?em|#[0-9a-f]+|[a-z]+)\s*)+$/i
+    STYLES_RE = /^(color|width|height|border|background|padding|margin|font|text|float)(-[a-z]+)*:\s*((\d+%?|\d+px|\d+(\.\d+)?em|#[0-9a-f]+|[a-z]+)\s*)+$/i
 
     def sanitize_styles(str)
       styles = str.split(";").map(&:strip)