Accept float in inline styles.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10396 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
49d93a5cab
commit
ff0989a702
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue