Merge lp:~stevenk/launchpad/p3a-description-fix into lp:launchpad

Proposed by Steve Kowalik on 2010-12-17
Status: Merged
Approved by: Steve Kowalik on 2010-12-17
Approved revision: no longer in the source branch.
Merged at revision: 12096
Proposed branch: lp:~stevenk/launchpad/p3a-description-fix
Merge into: lp:launchpad
Diff against target: 66 lines (+8/-9)
2 files modified
lib/canonical/launchpad/mailnotification.py (+2/-2)
lib/lp/soyuz/doc/archivesubscriber.txt (+6/-7)
To merge this branch: bzr merge lp:~stevenk/launchpad/p3a-description-fix
Reviewer Review Type Date Requested Status
Henning Eggers (community) code 2010-12-17 Approve on 2010-12-17
Review via email: mp+44013@code.launchpad.net

Commit Message

[r=henninge][ui=none][bug=691018] Correct white-space in the P3A new subscription e-mail.

Description of the Change

This branch corrects issue with the change introduced in https://code.launchpad.net/~stevenk/launchpad/p3a-email-description-cleanup/+merge/43882

I have fixed the issue, as well as fixed the tests to trip over the error.

To post a comment you must log in.
Henning Eggers (henninge) wrote :

Looks good, thanks. ;-)

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/mailnotification.py'
2--- lib/canonical/launchpad/mailnotification.py 2010-12-16 11:36:06 +0000
3+++ lib/canonical/launchpad/mailnotification.py 2010-12-17 06:10:53 +0000
4@@ -564,8 +564,8 @@
5 canonical_url(person))
6 description_blurb = '.'
7 if ppa_description is not None and ppa_description != '':
8- description_blurb = ' and has the following description:\n%s' % (
9- ppa_description)
10+ description_blurb = (
11+ ' and has the following description:\n\n%s' % ppa_description)
12 replacements = {
13 'recipient_name': person.displayname,
14 'registrant_name': registrant_name,
15
16=== modified file 'lib/lp/soyuz/doc/archivesubscriber.txt'
17--- lib/lp/soyuz/doc/archivesubscriber.txt 2010-12-16 11:07:24 +0000
18+++ lib/lp/soyuz/doc/archivesubscriber.txt 2010-12-17 06:10:53 +0000
19@@ -112,7 +112,7 @@
20 An email is sent to the subscribed person when the ArchiveSubscriber
21 entry is created:
22
23- >>> print_emails(include_reply_to=True)
24+ >>> print_emails(include_reply_to=True) #doctest: -NORMALIZE_WHITESPACE
25 From: Celso Providelo <noreply@launchpad.net>
26 To: joe@example.com
27 Reply-To: Celso Providelo <celso.providelo@canonical.com>
28@@ -123,8 +123,8 @@
29 --------------------------------------
30 <BLANKLINE>
31 Celso Providelo has granted you access to a private software archive
32- "PPA named p3a for Celso Providelo" (ppa:cprov/p3a), which is hosted
33- by Launchpad and has the following description:
34+ "PPA named p3a for Celso Providelo" (ppa:cprov/p3a), which is hosted by
35+ Launchpad and has the following description:
36 <BLANKLINE>
37 packages to help my friends.
38 <BLANKLINE>
39@@ -141,7 +141,6 @@
40 ignore this email. However, if you have any concerns you can contact the
41 Launchpad team by emailing feedback@launchpad.net
42 <BLANKLINE>
43- <BLANKLINE>
44 Regards,
45 The Launchpad team
46 ----------------------------------------
47@@ -151,7 +150,7 @@
48
49 >>> cprov_private_ppa.description = None
50 >>> unused = cprov_private_ppa.newSubscription(fredsmith, cprov)
51- >>> print_emails(include_reply_to=True)
52+ >>> print_emails(include_reply_to=True) #doctest: -NORMALIZE_WHITESPACE
53 From: Celso Providelo <noreply@launchpad.net>
54 To: fred@example.com
55 Reply-To: Celso Providelo <celso.providelo@canonical.com>
56@@ -162,8 +161,8 @@
57 --------------------------------------
58 <BLANKLINE>
59 Celso Providelo has granted you access to a private software archive
60- "PPA named p3a for Celso Providelo" (ppa:cprov/p3a), which is hosted
61- by Launchpad.
62+ "PPA named p3a for Celso Providelo" (ppa:cprov/p3a), which is hosted by
63+ Launchpad.
64 <BLANKLINE>
65 To start downloading and using software from this archive you need to
66 view your access details by visiting this link: