bug fix: broken indents fixed in markdown rendered statements

This commit is contained in:
Kei Kubo 2012-04-11 19:36:52 +00:00
parent 700eec6672
commit 42f04bf70c
5 changed files with 10 additions and 5 deletions

View file

@ -42,6 +42,7 @@
- if @issue.description.present? - if @issue.description.present?
.bottom_box_content .bottom_box_content
= preserve do
= markdown @issue.description = markdown @issue.description

View file

@ -39,6 +39,7 @@
- if @milestone.description.present? - if @milestone.description.present?
.bottom_box_content .bottom_box_content
= preserve do
= markdown @milestone.description = markdown @milestone.description

View file

@ -9,6 +9,7 @@
%strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small" %strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small"
%div.note-title %div.note-title
= preserve do
= markdown(note.note) = markdown(note.note)
- if note.attachment.url - if note.attachment.url
.right .right

View file

@ -41,6 +41,7 @@
%h3= content.name %h3= content.name
.readme .readme
- if content.name =~ /\.(md|markdown)$/i - if content.name =~ /\.(md|markdown)$/i
= preserve do
= markdown(content.data) = markdown(content.data)
- else - else
= simple_format(content.data) = simple_format(content.data)

View file

@ -8,6 +8,7 @@
Edit Edit
%hr %hr
.wiki_content .wiki_content
= preserve do
= markdown_to_html @wiki.content = markdown_to_html @wiki.content
%p.time Last edited by #{@wiki.user.name}, in #{time_ago_in_words @wiki.created_at} %p.time Last edited by #{@wiki.user.name}, in #{time_ago_in_words @wiki.created_at}