[Tutor] Fwd: OT (probably): How to change default tab key value to 4 spaces in GNOME Terminal?

David bouncingcats at gmail.com
Mon Apr 27 20:32:49 EDT 2020


On Mon, 27 Apr 2020 at 14:08, boB Stepp <robertvstepp at gmail.com> wrote:

> This now gives me what I want.  The earlier (in this thread) example now
> looks like:
>
> 3.7.5:  def f(s):
> ...         print(s)
> ...
> 3.7.5:  f("Jeremy")
> Jeremy
>
> which is exactly how I want it.  As a side note if I do the same
> copy/paste into Google Gmail the "p" in print lines up under the "d" in
> "def".  This is not what is in my terminal and, for me, this is the last
> straw on using Gmail's web-based email editor.  If it won't accurately
> render a copy/paste operation I am not going to tolerate it any longer.
> I am currently using Thunderbird to type this as it is already installed
> on my PC.  When I get time I will have to get it configured like I want
> it after which I will say bye to Google's Gmail editor.  And perhaps
> later I will abandon Gmail altogether.  But that is a battle for later, too.

I expect that the explanation for the different vertical alignment of
characters that you see in the gmail web interface, compared to your
terminal, is that the gmail interface uses a proportional-spaced font,
whereas your terminal likely uses a monospaced font. If you are
unaware of the difference, here's a short comparison:
https://www.techwalla.com/articles/proportional-vs-monospace-fonts

If you want every character to be rendered with an identical width, so
that every character appears in a specific vertical column that aligns
exactly with characters in lines above and below, then a monospace font
must be used to view the text.

I am not aware of any method that this can be changed in gmail.
If I recall correctly, that if the font settings are changed then it will
have the undesirable affect of causing messages to be sent
html-formatted instead of plain-text.


More information about the Tutor mailing list