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

Line number does not match the code #37

Closed
strprincess opened this issue Jan 24, 2018 · 7 comments
Closed

Line number does not match the code #37

strprincess opened this issue Jan 24, 2018 · 7 comments
Labels

Comments

@strprincess
Copy link

I found the line number does not exactly match the code,even though I changed the font size. The code likes this:
image

@elvirbrk
Copy link
Owner

Thanks for reporting, I'll look into it.

@elvirbrk
Copy link
Owner

Could you explain how you got that result. I tried to reproduce this issue, but everything looks fine.

@strprincess
Copy link
Author

My system language is Chinese(simplified). Maybe the reason is this.

@elvirbrk
Copy link
Owner

Could you export page with that example so I can analyze what caused that offset.

@strprincess
Copy link
Author

Sample code likes this, you can copy and paste them into your onenote.

int pre[1000];
int find(int x)           //查找根节点

    int r=x;
    while ( pre[r] != r )        //返回根节点 r
          r=pre[r];
    int i=x , j ;
    while( i != r )           //路径压缩
    {
         j = pre[i]; // 在改变上级之前用临时变量  j 记录下他的值 
         pre[i]= r ; // 把上级改为根节点
         i=j;
    }
    return r ;
}

@elvirbrk
Copy link
Owner

Now I see, because of Chinese characters in comments, those lines are taking up more space and are misaligned with line numbers.
OK, I will see what can be done about it.

@elvirbrk
Copy link
Owner

elvirbrk commented Feb 8, 2018

Fixed in v3.5
See release notes on how to align numbers if default setting are not suitable.

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

No branches or pull requests

2 participants