Sujet : Re: Python Dialogs
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 06. May 2024, 13:43:01
Autres entêtes
Organisation : Stefan Ram
Message-ID : <spaces-20240506123628@ram.dialup.fu-berlin.de>
References : 1 2 3
jak <
nospam@please.ty> wrote or quoted:
complex, I happen to use Google-Translator. It makes bad translations if
the lines are interrupted by the newline, so I wrote a tool dedicated to
Stefan and to all those who indent like him. This tool takes the text
from the clipboard, removes all the superfluous spaces, combines all the
lines in one and puts the result back into the clipboard. :-D
The game-changer is using "Content-Type: text/plain" instead
of "Content-Type: text/plain; format=flowed", because some
translation services are gonna interpret line breaks as
paragraph endings! But extra spaces like this should
just get ignored by most translation services.
We usually set off quotes, like code snippets, by indenting them.
Well, that won't fly in Python because indentation actually affects
the code's meaning. That's why in Python newsgroups, we got to do the
opposite - indent the surrounding text to make the quotes stand out!