Commits

David Chambers committed 0af893a

Added \r\n -> \n replacement to both instances of `clean_message`.

  • Participants
  • Parent commits 6c845d0

Comments (0)

Files changed (1)

         return self.cleaned_data.get('author_url', '').strip()
 
     def clean_message(self):
-        return self.cleaned_data.get('message', '').strip()
+        return self.cleaned_data.get('message', '').strip().replace('\r\n', '\n')
 
 class ContactForm(forms.Form):
     sender_name = forms.CharField(label='Name', initial='your name', max_length=100)
         return self.cleaned_data.get('subject', '').strip()
 
     def clean_message(self):
-        return self.cleaned_data.get('message', '').strip()
+        return self.cleaned_data.get('message', '').strip().replace('\r\n', '\n')