Defect #3072

<div style=''> does not work as advertised

Added by Yuval Hager over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:2009-03-30
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution:Wont fix Affected version:


When clicking 'help' on text formatting, I am forwarded to the full textile documentation, which has the following example, at the end of section 4 (

(for the report, I've wrapped it with <pre>)

<div style="float:right;">

h3. Sidebar



The main text of the
page goes here and will 
stay to the left of the 

The div selector is quoted in the text, instead of left as is.

My use case is that I need to change the div's direction to be "rtl", and it is impossible at the moment.

A workaround or even a hack to make it work would also be appreciated

yh.patch Magnifier (496 Bytes) Yuval Hager, 2009-04-06 10:24

Related issues

Duplicated by Redmine - Defect #3222: inline html not supported Closed 2009-04-22


#1 Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Inline styling was disabled some time ago for security reasons.

#2 Updated by Jean-Philippe Lang over 9 years ago

PS: if you need that feature, you can turn it on here:

#3 Updated by Yuval Hager over 9 years ago

Thanks for the tip - I'll test that soon.

#4 Updated by Yuval Hager over 9 years ago

Actually, I tried setting self.filter_styles=false and even added self.filter_html=false, but still there is no change in behavior (div styles are escaped).

Is there any cache that needs to be cleaned for the settings to take effect? I am no ruby programmer..


#5 Updated by Yuval Hager over 9 years ago

I finally managed to make it work by patching lib/redcloth3.rb (patch attached).

Also available in: Atom PDF