Thanks, Peter. Excellent advice, even if only for any of us using Microsoft Outlook as our mailer. I made the changes and we will see but they should mainly impact what I see. I did tweak another parameter.
The problem for me was finding where they hid the options menu I needed. Then, I started translating the menus back into German until I realized I was being silly! Good practice though. LOL! The truth is I generally can handle receiving mangled code as most of the time I can re-edit it into shape, or am just reading it and not copying/pasting. What concerns me is to be able to send out the pure text content many seem to need in a way that does not introduce the anomalies people see. Something like a least-common denominator. Or. I could switch mailers. But my guess is reading/responding from the native gmail editor may also need options changes and yet still impact some readers. -----Original Message----- From: Python-list <python-list-bounces+avi.e.gross=gmail....@python.org> On Behalf Of Peter J. Holzer Sent: Thursday, March 2, 2023 3:09 PM To: python-list@python.org Subject: Re: How to escape strings for re.finditer? On 2023-03-01 01:01:42 +0100, Peter J. Holzer wrote: > On 2023-02-28 15:25:05 -0500, avi.e.gr...@gmail.com wrote: > > I had no doubt the code you ran was indented properly or it would not work. > > > > I am merely letting you know that somewhere in the process of > > copying the code or the transition between mailers, my version is messed up. > > The problem seems to be at your end. Jen's code looks ok here. [...] > I have no idea why it would join only some lines but not others. Actually I do have an idea now, since I noticed something similar at work today: Outlook has an option "remove additional line breaks from text-only messages" (translated from German) in the the "Email / Message Format" section. You want to make sure this is off if you are reading mails where line breaks might be important[1]. hp [1] Personally I'd say you shouldn't use Outlook if you are reading mails where line breaks (or other formatting) is important, but ... -- _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | h...@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" -- https://mail.python.org/mailman/listinfo/python-list