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

关于代码中空格问题 #18

Closed
NUAA-XSF opened this issue Jul 23, 2021 · 4 comments
Closed

关于代码中空格问题 #18

NUAA-XSF opened this issue Jul 23, 2021 · 4 comments

Comments

@NUAA-XSF
Copy link

你好,
你提供的Typora主题非常好,配色很nice。但我在使用中出现了一个问题,当我插入python代码时,缩进的时候前面有4个空格,每个空格应该占据1个字符长度,4个空格等于一个Tab键,当你的主题下,不是这样的,每个空格占据的不是一个字符长度,也不是半个,总之和上一行的代码没法对齐。我换了Typora自带的theme,没有出现这个问题。

@liangjingkanji
Copy link
Owner

liangjingkanji commented Jul 23, 2021

我这边显示很正常, 默认主题github也是如此

image

请检查你这里的配置

image

@NUAA-XSF
Copy link
Author

我的操作系统是Ubuntu16.04,这是我用Drake Ayu的Python代码段:
2021-07-23 11-54-41屏幕截图
这是我用Typora自带的Night:
2021-07-23 11-55-04屏幕截图
我刚才将这一段CSS注释掉就没问题了:
2021-07-23 12-00-39屏幕截图
我不知道是什么原因导致这样的,我的代码缩进也是设置成4。

@liangjingkanji
Copy link
Owner

估计是字体问题, 你按照说明设置成你电脑上已有的字体吧

@liangjingkanji
Copy link
Owner

liangjingkanji commented Jul 23, 2021

我也将注释掉这一行, 并且修改行号样式, 请下载2.3.2版本, 谢谢你的反馈.

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

2 participants