Email notifications
All the email notifications that I get about forum posts have 7 <br /> for each <br /> in the actual post. This is rather annoying.
Here's an example of one:
http://forums.zotero.org/discussion/22615/4/procite-to-zotero-conversion-translator-ris-and-testing/
Here's an example of one:
Thanks! That works great so far. The book chapters do seem to be #4 = NOT EMPTY.
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
I am still checking, but I think this may have solved the larger part of my problems. :)
http://forums.zotero.org/discussion/22615/4/procite-to-zotero-conversion-translator-ris-and-testing/
Also, would it be possible to get a more explicit Subject? At the moment, it's always "Zotero Forums Notification". You've to open each email in order to know what it's about. Maybe, we can have "Zotero Forums Notification - SubjectOfTheTopic"?
Is Zotero running a different version of Notifi or have there been custom changes made to add line breaks? Could you maybe post the Notifi extension that Zotero uses if you don't feel like debugging this?
Edit: also using Html Formatter 2.6
Notifi was calling nl2br() on the post content, but it was doing so in the loop of notified users in which the content variable was never reassigned, so people later in the loop were getting successively more line breaks. (This also means you wouldn't have seen it testing in your own installation, but thanks for looking into this.)
Thanks!
--- default.php(revision 1103)
+++ default.php(working copy)
@@ -357,7 +357,7 @@
$e->Clear();
$e->AddFrom($DiscussionForm->Context->Configuration['SUPPORT_EMAIL'], $DiscussionForm->Context->Configuration['SUPPORT_NAME']);
$e->AddRecipient($val[1], $NotifiName);
- $e->Subject = $DiscussionForm->Context->Configuration['APPLICATION_TITLE'].' '.$DiscussionForm->Context->GetDefinition('Notification');
+ $e->Subject = $DiscussionForm->Context->Configuration['APPLICATION_TITLE'].' '.$DiscussionForm->Context->GetDefinition('Notification') . ' – ' . $discussionName;
// Save the ID of the user to be emailed
$currentUserId = $val[0];
@Dan: what about aurimas' post just above? That seems a minor change in the code, and a big improvement!