Changeset 1640

Show
Ignore:
Timestamp:
08/31/05 09:09:45
Author:
miyagawa
Message:

strip 1em padding for <div> if entry.description contains its own <p> tag

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bloglines2email/trunk/bloglines2email

    r1639 r1640  
    101101[% IF item.dc.creator %]by [% item.dc.creator | html %][% END %][% IF item.dc.subject %] on [% item.dc.subject %][% END %]</div> 
    102102<div style="clear:both"></div> 
    103 <div style="padding: 1em 0">[% item.description %]</div> 
     103<div[% UNLESS item.description.match('(?i)^<p[ >]') %] style="padding: 1em 0"[% END %]>[% item.description %]</div> 
    104104<div style="font-size:0.8em">[% IF item.pubDate %]Posted on [% item.pubDate %][% END %] | <a href="[% item.link | html %]">permalink</a> | <a href="[% feed.link | html %]">[% feed.title | html %]</a></div> 
    105105</div>