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

分屏模式下,代码块中的【注释前置空格】、【空行】会被自动消除 #1541

Closed
gkn1234 opened this issue Jan 15, 2024 · 1 comment

Comments

@gkn1234
Copy link

gkn1234 commented Jan 15, 2024

编辑模式

  • sv 分屏编辑预览模式

描述问题

分屏模式下,代码块中的【# 符号前的空格】、【空行】会被自动消除

**【反例】**
注释虽然放在代码段的上方,但没有和被注释代码段保持同样的缩进。

```python
    # Get replicate sub system index and net indicator   
repssn_ind = ssn_data[index].repssn_index
repssn_ni = ssn_data[index].ni

```

期待的结果

在下述两种场景中,都能渲染为下图中期待的内容

  1. 复制示例中的代码块到 sv 模式
  2. 复制示例中的代码块到其余两种模式,之后切换到 sv 模式

image

然而,sv 模式下却会错误地渲染为下图的内容:

image

截屏或录像

版本信息

  • 版本:
  • 操作系统:
  • 浏览器:

其他信息

@88250
Copy link
Collaborator

88250 commented Jan 16, 2024

你好,这是目前 SV 模式的缺陷,不久以后我们会彻底废弃现在的 SV 模式 #1319

@88250 88250 closed this as completed Jan 16, 2024
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