applied patch from Eric from #732

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@879 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lrbalt 2008-06-13 06:34:32 +00:00
parent 4f4b883688
commit 4b6cda0768
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
<div id="<%= dom_id(note, 'container') %>">
<h2><%= link_to("Note #{note.id}", note_path(note), :title => "Show note #{note.id}" ) %></h2>
<div id="<%= dom_id(note) %>">
<%= sanitize(textilize(note.body.gsub(/((https?:\/\/[^ ]*))/, '<a href="\2">\1</a>'))) %>
<%= sanitize(textilize(note.body.gsub(/((https?:\/\/[^ \n\t]*))/, '"\1":\2'))) %>
<div class="note_footer">
<%= link_to_remote(

View file

@ -3,5 +3,5 @@
element.next('.todo_notes').toggle
end -%>
<div class="todo_notes" id="<%= dom_id(item, 'notes') %>" style="display:none">
<%= markdown( item.notes.gsub(/((https?:\/\/[^ ]*))/, '<a href="\2">\1</a>') ) %>
<%= markdown( item.notes.gsub(/((https?:\/\/[^ \n\t]*))/, '"\1":\2') ) %>
</div>