GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Deep indentation with spaces causes columns of fixed-width font not to be aligned #479

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce:
1. Make a file with deep indentation using spaces in it, like this one:
  aVeryLongName = [tadaa
                                   , tadaa
                                   , tadaa]
2. You may have to try this several times with different text, because this 
bug does not always occur.
3. Notic

Since I am using a fixed-width font, the character columns should be 
aligned, but some of them are partway off, by anywhere from a few pixels 
to a half-column to a point where I need to look at it in another editor to 
make sure that it's aligned right.

I am using the Editra v0.5.32 binary on a Mac.

Original issue reported on code.google.com by wyndc...@gmail.com on 12 Feb 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Pretend that step 3 isn't there, and that the text in step one is properly 
aligned, like 
this:
aVeryLongName = [tadaa
              , tadaa
              , tadaa]

Original comment by wyndc...@gmail.com on 12 Feb 2010 at 2:06

GoogleCodeExporter commented 9 years ago
Gah, it didn't align right again. Oh well...

Original comment by wyndc...@gmail.com on 12 Feb 2010 at 2:06

GoogleCodeExporter commented 9 years ago
What font are you using?

Are you sure that it is a fixed width font?

What version of OSX are you on?

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 2:24

GoogleCodeExporter commented 9 years ago
Also, if you turn whitespace on (View->Editor->Whitespace) and take a screenshot
would be an easy way to show what your seeing as the font in my webbrowser is 
most
likely different than what is in yours.

Thanks

Original comment by CodyPrec...@gmail.com on 12 Feb 2010 at 2:29

GoogleCodeExporter commented 9 years ago
Oh, the text I put in the post was just an example of the kind of indentation I 
was 
talking about; it wasn't intended to illustrate the problem.

I have attached a screenshot.

I'm on OSX Leopard (10.5).

Original comment by wyndc...@gmail.com on 13 Feb 2010 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

What fonts are you using?

It is possible that you have two different fonts set in your settings and that 
some
styles in the buffer may be using the other font.

See: Preferences=>Document=> Primary and Secondary Font

Please let me know what fonts you have set so that I can try to reproduce this 
on my
machine.

Thanks

Original comment by CodyPrec...@gmail.com on 13 Feb 2010 at 12:32

GoogleCodeExporter commented 9 years ago
I use Dejavu Sans Mono, size 12. I tried setting the primary and secondary 
fonts to be 
the same, but that did not fix the problem.

I just feel like saying that Editra is completely fantastic, and that it would 
be perfect as 
far as I can tell if not for this. :D

Original comment by wyndc...@gmail.com on 13 Feb 2010 at 1:36