Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Framadate
Framadate
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 161
    • Issues 161
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 22
    • Merge Requests 22
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Framasoft
  • Framadate
  • FramadateFramadate
  • Merge Requests
  • !336

Open
Opened Sep 19, 2018 by greenedv@greenedv1
  • Report abuse
Report abuse

Fixing Linebreaks in Text Messages

According to https://github.com/PHPMailer/PHPMailer/blob/master/src/PHPMailer.php#L3830 they killed the standard html2text class and the text mails I got where wihtout any linebreaks at all. I kinda wrote a buildin function which 1. make proper line breaks, 2. removes a-Tag and 3. removes hr-tag for textmails only. Maybe the core class should use the $mail-AltBody($body) feature instead of this solution, but for now this works for me and time to give something back.

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://framagit.org/greenedv/framadate.git master
git checkout -b greenedv/framadate-master FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/develop
git merge --no-ff greenedv/framadate-master

Step 4. Push the result of the merge to GitLab

git push origin develop

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 0
  • Commits 2
  • Pipelines 1
  • Changes 1
Thomas Citharel
Assignee
Thomas Citharel @tcit
Assign to
None
Milestone
None
Assign milestone
Time tracking
1
Labels
To review
Assign labels
  • View project labels
Reference: framasoft/framadate/framadate!336