Menu

#1076 Geany 1.24.1 - Columns Of Text Not Aligning?

None
pending-invalid
nobody
None
Unknown
5
2015-01-09
2015-01-06
SourceBugs
No

Hi,

My system specs;

Slackware 14.1 x86_64
Openbox 3.5.2
gtk+3-3.8.2
nvidia gpu - nvidia-driver-340.58
xorg-server-1.14.3
bash-4.2.05
rxvt-unicode-9.20
zsh-5.0.2
xterm-297

I noticed when I'm compiling something, and at the terminal it gives output as example of options, and these are lined up in columns like the example below;

prefix: /usr
compiler: gcc -std=gnu99
cflags: -O2 -fPIC
ldflags:

Adjustment methods:
DRM:        yes
RANDR:      yes
VidMode:        yes
WinGDI:     no

When I copy and paste output like this into geany, and then open up geany to look at it, the columns in geany are not lined up.

I'm not sure what's causing this...

Hmm

Please see the attached screen shots, one with nano showing the columns lines up correctly and the other of geany with them moved around.

1 Attachments

Related

Bugs: #1076

Discussion

  • SourceBugs

    SourceBugs - 2015-01-06

    Hi,

    Forgot to mention, in the screen shots, it's not the words on the left like

    prefix:
    compiler:
    cflags:

    The words; gcc -std=gnu99 and the yes and no to the right are the ones that are shifted...

    Also I mentioned above showing an example I pasted for the output, please disregard that, the output I pasted did not appear correctly. I was trying to show an example of it all lined up, intstead it actually looks more like how geany displays it.

    Is there a way for me to fix geany, so when I copy out from a terminal into geany, geany will display it correctly, like this output as an example?

     

    Last edit: SourceBugs 2015-01-06
  • Colomban Wendling

    This looks like incorrect tab widths that's all. Going to Document->Indent Width and setting it to 8 should do the trick. Or set the indentation type to Tabs and Spaces in Document->Indent Type.
    You can also change the default in the preferences.

    Bottom line is Geany's default indentation width is 4, which means it has tab stops at columns multiple of 4. The output you pasted is most probably aligned for a tab width of 8, hence the misalignment.

     
  • Colomban Wendling

    • status: open --> pending-invalid
     
  • SourceBugs

    SourceBugs - 2015-01-07

    I did; Document->Indent Width and setting it to 8

    The indentation type was set to Tabs by default...

    THANKS :)

     

    Last edit: SourceBugs 2015-01-07
  • SourceBugs

    SourceBugs - 2015-01-07

    I closeed geany and it sets back to 4 for the Ident Width, ahh but I realized it's in the preferences to adjust if you want to make it permanent. You forgot to tell me that too, LOL, j/kiddin :)

    thanks

     

    Last edit: SourceBugs 2015-01-07
    • Lex Trotman

      Lex Trotman - 2015-01-07

      The defaults are set in menu->edit->preferences->editor->indentation

      On 7 January 2015 at 18:52, SourceBugs sourcebuggy@users.sf.net wrote:

      Forgot to mention, everytime I close geany it sets back to 4 for the Ident
      Width, how do I make it stay on 8?

      thanks


      [bugs:#1076] Geany 1.24.1 - Columns Of Text Not Aligning?

      Status: pending-invalid
      Found in: Unknown
      Fixed in: None
      Created: Tue Jan 06, 2015 11:12 PM UTC by SourceBugs
      Last Updated: Wed Jan 07, 2015 08:47 AM UTC
      Owner: nobody

      Hi,

      My system specs;

      Slackware 14.1 x86_64
      Openbox 3.5.2
      gtk+3-3.8.2
      nvidia gpu - nvidia-driver-340.58
      xorg-server-1.14.3
      bash-4.2.05
      rxvt-unicode-9.20
      zsh-5.0.2
      xterm-297

      I noticed when I'm compiling something, and at the terminal it gives output
      as example of options, and these are lined up in columns like the example
      below;

      prefix: /usr
      compiler: gcc -std=gnu99
      cflags: -O2 -fPIC
      ldflags:

      Adjustment methods:
      DRM: yes
      RANDR: yes
      VidMode: yes
      WinGDI: no

      When I copy and paste output like this into geany, and then open up geany to
      look at it, the columns in geany are not lined up.

      I'm not sure what's causing this...

      Hmm

      Please see the attached screen shots, one with nano showing the columns
      lines up correctly and the other of geany with them moved around.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/geany/bugs/1076/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #1076

  • SourceBugs

    SourceBugs - 2015-01-09

    Yes menu->edit->preferences->editor->indentation is what I meant before...

    Thanks again...

     

Log in to post a comment.