Feature #26552 » max-width-patch-v3.diff
lib/redmine/wiki_formatting/textile/redcloth3.rb (working copy) | ||
---|---|---|
514 | 514 |
atts |
515 | 515 |
end |
516 | 516 | |
517 |
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
|
|
517 |
STYLES_RE = /^(color|(min-|max-)?+(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
|
|
518 | 518 | |
519 | 519 |
def sanitize_styles(str) |
520 | 520 |
styles = str.split(";").map(&:strip) |