|
From: | Christophe Troestler |
Subject: | bug#34387: 26.1; Gnus: handle empty message parts |
Date: | Thu, 14 Feb 2019 13:30:34 +0100 |
User-agent: | mu4e 1.1.0; emacs 26.1 |
On 14 February 2019 at 00:20 CET, Katsumi Yamaoka wrote: > > The point would be to delete only whitespace that mm-shr inserts. > How about this? > > (defadvice mm-shr (around delete-leading-and-trailing-whitespace activate) > "Delete leading and trailing whitespace in Gnus article buffer." > (when (derived-mode-p 'gnus-article-mode) > (save-restriction > (narrow-to-region (point) (point)) > ad-do-it > (goto-char (point-min)) > (skip-chars-forward "\t\n ") > (delete-region (point-min) (point)) > (goto-char (point-max)) > (skip-chars-backward "\t\n ") > (delete-region (point) (point-max)) > (insert "\n")))) The point is to delete all trailing whitespace coming from the conversion of HTML to text. Without this, some emails (such as the one attached) are hard to read because the lines end with so many whitespaces that they take several lines on the screen (filled with spaces). The following does what I want (and does not trigger the bug, thanks to the narrowing). (define-advice mm-shr (:around (oldfn &rest handle) delete-trailing-whitespace) "Delete leading and trailing whitespace in Gnus article buffer." (when (derived-mode-p 'gnus-article-mode) (save-restriction (narrow-to-region (point) (point)) (apply oldfn handle) (delete-trailing-whitespace)))) Thanks, C.
--- Begin Message ---Subject: Numerical Algorithms, Vol. 80, Issue 2 - New Issue Alert Date: Thu, 14 Feb 2019 11:09:05 +0100
If this email is not displayed correctly, please click here to read this table of contents online.
New Issue Alert
02/14/2019
Dear Ch. TROESTLER,
We are pleased to deliver your requested table of contents alert for Numerical Algorithms. Volume 80 Number 2 is now available online.
Important news
Celebrate 2019 Chinese New Year with Springer!
Read 2017 & 2018 top download books with open chapters. Download Highly Cited Papers, top 1% cited in the field, free online until 28 Feb.
» Learn more
In this issue
Original Paper Improved optimization methods for image registration problems
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper A two-grid parallel partition of unity finite element scheme
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper Modified PHSS iterative methods for solving nonsingular and singular saddle point problems
» Abstract » Full text PDF
Original Paper On the asymptotic optimality of error bounds for some linear complementarity problems
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper A modified Newton iteration for finding nonnegative Z-eigenpairs of a nonnegative tensor
» Abstract » Full text PDF
Original Paper Selective projection methods for solving a class of variational inequalities
» Abstract » Full text PDF
Original Paper
» Abstract » Full text PDF
Original Paper Truncation dimension for linear problems on multivariate function spaces
» Abstract » Full text PDF
Do you want to publish your article in this journal?
Please visit the homepage of Numerical Algorithms for full details on:
- aims and scope
- editorial policy
- article submission
Impact Factor: 1.536 (2017)
Journal Citation Reports®, Clarivate Analytics
Read open access articles
Click here to view all open access articles published in this journal.
Interested in publishing your article open access?
When you opt for Open Choice, you retain full copyright and
your article is permanently freely available.
Sign up for SpringerAlerts!
Register for Springer’s email services providing you with info on the latest books in your field. » Click here
Important news
Springer Nature Transfer Desk
Imagine a world where you only have to submit your article once. With our Transfer Desk, we’re working toward making that a reality. Learn more here:
This email has been sent to christophe.troestler@umons.ac.be
You are receiving this email because you have opted to receive information from SpringerAlerts as a registered user of our Table of Content Alert for journals.
To ensure the delivery to your inbox, please add the sender address springer@alerts.springer.com to your allow list.
To modify your subscription (including change of email address etc.), please go to springer.com/alertprofile and log in with your email address and password.
To unsubscribe from this specific table of contents alert, please click here.
To unsubscribe from ALL table of contents alerts, please click here.
For all enquiries, problems or suggestions regarding this service, please contact onlineservice@springer.com.
Springer respects your privacy and does not disclose, sell or rent your personal information to any nonaffiliated third parties without your consent. Please visit the Springer Privacy Statement.
Springer-Verlag GmbH Heidelberg, Tiergartenstrasse 17, 69121 Heidelberg, Germany, phone: +49 6221 487 0, fax: +49 6221 487 8366
© Springer 2019, springer.com
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |