> I think it is about how LyX displays the tabs. Now, the tabs are painted by 
> QPainter and the cursor movement is guided by QFontMetrics. I tried to paint 
> the tabs and to guide the cursor myself, but this lead to (for me) 
> ununderstandable crashes. If you know how we can override the default of 8 
> spaces, let me know.

If you have a patch that leads to crash, maybe I can have a look.
Abdel is more likely to know the answer though.

> Second, if the user specifies a certain tab width for the output in listings, 
> then it would also be nice that the same tab width is used on the screen. 
> This means we have to pass this info to the (rather low-level) painting and 
> cursor  movement code.

I do not think this is necessary. Use 4 spaces in lyx is enough.

> May it be an option to create an InsetTab or something, which can easily be 
> specified a certain width and can be drawn in a customized way ?

This is too complicated..

Bo

Reply via email to