Skip to content

Commit f4853ce

Browse files
committed
Remove those danged newlines too
1 parent 34c43f4 commit f4853ce

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

textreparser/plugins/clean_old_ideas.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ protected function reparse_record(array $record)
101101
$text = $this->text_formatter_utils->remove_bbcode($text, 'idea');
102102

103103
// Remove old strings from the idea post
104-
$text = str_replace(['----------', 'View idea at: ', 'Posted by '], ['', '', ''], $text);
104+
$text = str_replace([
105+
"<br/>\n<br/>\n----------",
106+
"<br/>\n<br/>\nView idea at: ",
107+
"<br/>\n<br/>\nPosted by "
108+
], ['', '', ''], $text);
105109

106110
// Save the new text if it has changed and it's not a dry run
107111
if ($text !== $record['text'] && $this->save_changes)

0 commit comments

Comments
 (0)