diff --git a/app/views/dmsf_files/show.html.erb b/app/views/dmsf_files/show.html.erb index ba418661..635e4cd3 100644 --- a/app/views/dmsf_files/show.html.erb +++ b/app/views/dmsf_files/show.html.erb @@ -108,7 +108,11 @@ <% if revision.description.present? %>
<%= content_tag :div, l(:label_description), :class => 'label' %> - <%= content_tag :div, textilizable(revision.description), :class => 'wiki, value' %> + <% text = textilizable(revision.description) %> + <% if text =~ /^

(.*)<\/p>$/ %> + <% text = $1 %> + <% end %> + <%= content_tag :div, text.html_safe, :class => 'value wiki' %>

<% end %>
@@ -136,7 +140,11 @@ <% if revision.comment.present? %>
<%= content_tag :div, l(:label_comment), :class => 'label' %> - <%= content_tag :div, textilizable(revision.comment), :class => 'value wiki' %> + <% text = textilizable(revision.comment) %> + <% if text =~ /^

(.*)<\/p>$/ %> + <% text = $1 %> + <% end %> + <%= content_tag :div, text.html_safe, :class => 'value wiki' %>

<% end %>
diff --git a/assets/stylesheets/redmine_dmsf.css b/assets/stylesheets/redmine_dmsf.css index 63975ed2..28b72dfe 100644 --- a/assets/stylesheets/redmine_dmsf.css +++ b/assets/stylesheets/redmine_dmsf.css @@ -136,10 +136,17 @@ padding: 10px; } +div.dmsf_revision_inner_box .attribute { + padding-left: 180px; + clear: left; + min-height: 1.8em; +} + div.dmsf_revision_inner_box .attribute .label { - font-weight:bold; - float: left; width: 170px; + margin-left: -180px; + font-weight: bold; + float: left; } .dmsf_id_box {