Removed unnecessary line breaks in text feeds. Set line breaks in view to unix. Fixes #472.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@489 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-03-28 05:21:00 +00:00
parent 8e719d9e9a
commit e3ebb686e1
2 changed files with 26 additions and 27 deletions

View file

@ -1,8 +1,8 @@
<%
context = text_context
todos_in_context = todos.select { |t| t.context_id == context.id }
if todos_in_context.length > 0
%>
<%= context.name.upcase %>:
<% end -%>
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
<%
context = text_context
todos_in_context = todos.select { |t| t.context_id == context.id }
if todos_in_context.length > 0
%>
<%= context.name.upcase %>:
<% end -%>
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>

View file

@ -1,19 +1,18 @@
<%
todo = text_todo
result_string = ''
if (todo.completed?) && todo.completed_at
result_string << " [Completed: " + format_date(todo.completed_at) + "] "
end
if todo.due
result_string << " [Due: " + format_date(todo.due) + "] "
result_string << todo.description + " "
else
result_string << " " + todo.description + " "
end
unless todo.project.nil?
result_string << "(" + todo.project.name + ")"
end
-%>
<%= result_string %>
<%
todo = text_todo
result_string = ''
if (todo.completed?) && todo.completed_at
result_string << " [Completed: " + format_date(todo.completed_at) + "] "
end
if todo.due
result_string << " [Due: " + format_date(todo.due) + "] "
result_string << todo.description + " "
else
result_string << " " + todo.description + " "
end
unless todo.project.nil?
result_string << "(" + todo.project.name + ")"
end
-%><%= result_string %>