Commit 42f04bf70c279f941f70c5bba547493d51a28f03

Authored by Kei Kubo
1 parent 700eec66

bug fix: broken indents fixed in markdown rendered statements

app/views/issues/show.html.haml
... ... @@ -42,7 +42,8 @@
42 42  
43 43 - if @issue.description.present?
44 44 .bottom_box_content
45   - = markdown @issue.description
  45 + = preserve do
  46 + = markdown @issue.description
46 47  
47 48  
48 49 .issue_notes#notes= render "notes/notes", :tid => @issue.id, :tt => "issue"
... ...
app/views/milestones/show.html.haml
... ... @@ -39,7 +39,8 @@
39 39  
40 40 - if @milestone.description.present?
41 41 .bottom_box_content
42   - = markdown @milestone.description
  42 + = preserve do
  43 + = markdown @milestone.description
43 44  
44 45  
45 46 :javascript
... ...
app/views/notes/_show.html.haml
... ... @@ -9,7 +9,8 @@
9 9 %strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small"
10 10  
11 11 %div.note-title
12   - = markdown(note.note)
  12 + = preserve do
  13 + = markdown(note.note)
13 14 - if note.attachment.url
14 15 .right
15 16 %div.file
... ...
app/views/refs/_tree.html.haml
... ... @@ -41,7 +41,8 @@
41 41 %h3= content.name
42 42 .readme
43 43 - if content.name =~ /\.(md|markdown)$/i
44   - = markdown(content.data)
  44 + = preserve do
  45 + = markdown(content.data)
45 46 - else
46 47 = simple_format(content.data)
47 48  
... ...
app/views/wikis/show.html.haml
... ... @@ -8,7 +8,8 @@
8 8 Edit
9 9 %hr
10 10 .wiki_content
11   - = markdown_to_html @wiki.content
  11 + = preserve do
  12 + = markdown_to_html @wiki.content
12 13  
13 14 %p.time Last edited by #{@wiki.user.name}, in #{time_ago_in_words @wiki.created_at}
14 15 - if can? current_user, :admin_wiki, @project
... ...