Skip to content

Commit

Permalink
Tagmanager > simple_content: added "last" class to last paragraph
Browse files Browse the repository at this point in the history
This requires PR #345 to be merged as well.
  • Loading branch information
kstenschke committed Oct 13, 2015
1 parent 4ba08d9 commit 7b24ea7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/libraries/Tagmanager.php
Expand Up @@ -1332,6 +1332,8 @@ public static function tag_simple_content(FTL_Binding $tag)
if ( $autolink)
$value = auto_link($value);

$value = replace_last('<p>', '<p class="last">', $value);

return self::output_value($tag, $value);
}

Expand Down

1 comment on commit 7b24ea7

@partikule
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch....
Hardcoded replacement of last "p" by "p class="last"

Honnestly ?

Please sign in to comment.