Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Assignments doesn't work correctly with unicode on left hand side #18

Closed
JayKickliter opened this issue Aug 15, 2014 · 2 comments
Closed
Assignees

Comments

@JayKickliter
Copy link

Before command:

    (hLen, Nφ) = size( PFB )       
    xLen = length( x )             
    bufLen = length( buffer )
    reqDlyLineLen = hLen - 1
    dlyLineLen = length( dlyLine )

After command:

    (hLen, Nφ)   = size( PFB )        
    xLen          = length( x )       
    bufLen        = length( buffer )
    reqDlyLineLen = hLen - 1
    dlyLineLen    = length( dlyLine )
@sorbits
Copy link
Member

sorbits commented Aug 15, 2014

If you are on 10.9 or 10.10 then you can fix this locally by changing
the command’s shebang to: #!/usr/bin/ruby

This makes it use ruby 2.0 which has a unicode aware String#ljust
method.

@infininight I believe this code has already been patched for ruby 1.9
compatibility, and a quick test showed no issues running it with ruby
2.0, so we could just change the shebang rather than write a
String#ljust replacement (for those still on 10.8 or less).

On 15 Aug 2014, at 19:13, Jay Kickliter wrote:

Before command:

  (hLen, Nφ) = size( PFB )
  xLen = length( x )
  bufLen = length( buffer )
  reqDlyLineLen = hLen - 1
  dlyLineLen = length( dlyLine )

After command:

  (hLen, Nφ)   = size( PFB )
  xLen          = length( x )
  bufLen        = length( buffer )
  reqDlyLineLen = hLen - 1
  dlyLineLen    = length( dlyLine )

Reply to this email directly or view it on GitHub:
#18

@JayKickliter
Copy link
Author

Thanks, that did work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants