allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brondsema" <>
Subject [allura:tickets] #7896 Better plaintext mail for commit notifications
Date Thu, 06 Jul 2017 19:52:22 GMT
- **status**: open --> review
- **assigned_to**: Dave Brondsema
- **Comment**:

Fixed fairly well on db/8157


** [tickets:#7896] Better plaintext mail for commit notifications**

**Status:** review
**Milestone:** unreleased
**Created:** Fri Jun 12, 2015 06:25 PM UTC by Dave Brondsema
**Last Updated:** Thu Jul 06, 2017 05:55 PM UTC
**Owner:** Dave Brondsema

Our plaintext mail messages just send markdown without converting it to HTML.  So all plain
text views will see some markdown formatting.  Commit notifications also include HTML tags
in each commit message.  This is from the `summary = g.markdown_commit.convert(ci.message)`
in `def send_notifications` rendering commit-markdown -> HTML.  (Before [#7825] the commit
message text was just passed through without this step but that caused inadvertent markdown
formatting for things like `__init__`, or `if (*pArray[j+1] > *pArray[j])`

Example of the HTML coming through in plain text:

I think a fix for this would have to include a way for commit notification logic to build
the plain text version separately and pass that in to the mail functions.


Sent from because is subscribed to

To unsubscribe from further messages, a project admin can change settings at
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message