<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ module RecurringTodosHelper
   def recurrence_time_span(rt)
     case rt.ends_on
     when &quot;no_end_date&quot;
-      return &quot;&quot;
+      return rt.start_from.nil? ? &quot;&quot; : &quot;from &quot; + format_date(rt.start_from)
     when &quot;ends_on_number_of_times&quot;
       return &quot;for &quot;+rt.number_of_occurences.to_s + &quot; times&quot;
     when &quot;ends_on_end_date&quot;
@@ -11,7 +11,7 @@ module RecurringTodosHelper
       ends = rt.end_date.nil? ? &quot;&quot; : &quot; until &quot; + format_date(rt.end_date)
       return starts+ends
     else
-      raise Exception.new, &quot;unknown recurrence time span selection (#{self.ends_on})&quot;    
+      raise Exception.new, &quot;unknown recurrence time span selection (#{self.ends_on})&quot;
     end
   end
   
@@ -28,10 +28,10 @@ module RecurringTodosHelper
     
   def recurring_todo_tag_list
     tags_except_starred = @recurring_todo.tags.reject{|t| t.name == Todo::STARRED_TAG_NAME}
-    tag_list = tags_except_starred.collect{|t| &quot;&lt;span class=\&quot;tag #{t.name.gsub(' ','-')}\&quot;&gt;&quot; + 
+    tag_list = tags_except_starred.collect{|t| &quot;&lt;span class=\&quot;tag #{t.name.gsub(' ','-')}\&quot;&gt;&quot; +
         # link_to(t.name, :controller =&gt; &quot;todos&quot;, :action =&gt; &quot;tag&quot;, :id =&gt;
         # t.name) + TODO: tag view for recurring_todos (yet?)
-      t.name + 
+      t.name +
         &quot;&lt;/span&gt;&quot;}.join('')
     &quot;&lt;span class='tags'&gt;#{tag_list}&lt;/span&gt;&quot;
   end
@@ -44,7 +44,7 @@ module RecurringTodosHelper
     str
   end
   
-  def recurring_todo_remote_star_icon 
+  def recurring_todo_remote_star_icon
     str = link_to( image_tag_for_star(@recurring_todo),
       toggle_star_recurring_todo_path(@recurring_todo),
       :class =&gt; &quot;icon star_item&quot;, :title =&gt; &quot;star the action '#{@recurring_todo.description}'&quot;)</diff>
      <filename>app/helpers/recurring_todos_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,16 @@
   &lt;div class=&quot;description&quot;&gt;
     &lt;span class=&quot;todo.descr&quot;&gt;&lt;%= sanitize(recurring_todo.description) %&gt;&lt;/span&gt; &lt;%= recurring_todo_tag_list %&gt;
     &lt;span class='recurrence_pattern'&gt;
-      [&lt;%=recurrence_target(recurring_todo)%&gt; &lt;%= recurring_todo.recurrence_pattern %&gt; &lt;%= recurrence_time_span(recurring_todo) %&gt;]
+      &lt;%
+         rt = recurrence_target(recurring_todo)
+         rp = recurring_todo.recurrence_pattern
+         # only add space if recurrence_pattern has content
+         rp = &quot; &quot; + rp if !rp.nil?
+         rts = recurrence_time_span(recurring_todo)
+         # only add space if recurrence_time_span has content
+         rts = &quot; &quot; + rts if !(rts == &quot;&quot;)
+      %&gt;
+      [&lt;%=rt%&gt;&lt;%=rp%&gt;&lt;%=rts%&gt;]
     &lt;/span&gt;
   &lt;/div&gt;
 &lt;/div&gt;</diff>
      <filename>app/views/recurring_todos/_recurring_todo.html.erb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9d246f70cd515f3bea6774e72eda0c1424da2149</id>
    </parent>
  </parents>
  <author>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </author>
  <url>http://github.com/bsag/tracks/commit/5659b8adbb321311673611c53bf4af9de0f73c82</url>
  <id>5659b8adbb321311673611c53bf4af9de0f73c82</id>
  <committed-date>2008-11-29T11:15:49-08:00</committed-date>
  <authored-date>2008-11-29T11:15:49-08:00</authored-date>
  <message>fix #764 where unnecessary space is removed in the recurrence pattern

also fixes the case that a rec todo that has a start date but no end date is not showing the from xx-xx-xxxx on the page</message>
  <tree>8a229ee0d45f8f9bf87f8d15a08ddac59831cdbd</tree>
  <committer>
    <name>Reinier Balt</name>
    <email>lrbalt@gmail.com</email>
  </committer>
</commit>
