osuosl / formsender

Simple script to email form submissions.
Apache License 2.0
3 stars 1 forks source link

Format Outgoing Form Data #20

Closed matthewrsj closed 9 years ago

matthewrsj commented 9 years ago

Format outgoing form data email to look like this: https://pastebin.osuosl.org/29996/

This needs to be dynamic and work with any type of form so the Project Info header is replaced with Information

matthewrsj commented 9 years ago

@Kennric here is the modified test for the formatting. I used an implicitly joined string so I could indent without having to post-process out the white space as would be required with this:

'some_field': """
              this is my multi line string that needs
              to be post-processed to remove
              leading white space on each line
              """

My other option was this:

'some_field': """this is my multi line string that
has no leading white space but the indentation
looks ugly"""

but that is pretty ugly.

Kennric commented 9 years ago

This looks good and tests are passing. +1