Pita/etherpad-lite — Issue #444: Tabs in monospaced font are rendered with strange width
Author: ThomasWaldmann
Created: 2012-02-12 14:53:22+00:00
State: open

On beta.etherpad.org i tried to edit some piece of python code:

class Foo(object):
pass

I used monospace font, indented "pass" by pressing the tab key.

Expected behaviour: visual indentation by some definite amount of char positions. Perfect would be 4 as this is the standard in python (and also a useful amount for other purposes).

Experienced behaviour: it looked like it was indented by about 3.5 times the width of a char.

I could not get the same width of whitespace by pressing the space key multiple times.

Suggestion:
a) render tabs as wide as 4 blanks (font issue?)
b) alternatively, EXPAND a tab keypress and insert 4 blanks into the text (python coders would love you for that)