-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
HTML 块存在空行时造成运行时异常
Is there an existing issue for this?
- I have searched the existing issuesTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Can the issue be reproduced with the default theme (daylight/midnight)?
- I was able to reproduce the issue with the default themeTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Could the issue be due to extensions?
- I've ruled out the possibility that the extension is causing the problem.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Describe the problem
HTML 块存在空行时提示 形成了多个 HTML 块,为防止数据丢失请使用 <div> 标签包裹并去掉空行
, 然后点击编辑按钮进行编辑时出现运行时异常
When there are empty lines in the HTML block, prompts Multiple HTML blocks are formed. To prevent data loss, please use <div> tags to wrap and remove blank lines
, and then click the Edit button to edit a runtime exception when editing
Expected result
HTML 块在保存时自动移除空行
HTML blocks automatically remove empty lines when saved
Screenshot or screen recording presentation
No response
Version environment
- Version: 2.8.4-dev1
- Operating System:
- Browser (if used):
Log file
E 2023/04/07 21:39:36 transaction.go:861: get node [20230407213820-etg2jy8] in tree [20230407212329-u4jaait] failed
More information
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
[-]HTML 块存在空行时造成运行时异常 | HTML block with blank line parsing errors cause run-time exceptions[/-][+]HTML block with blank line parsing errors cause run-time exceptions[/+]88250 commentedon Apr 9, 2023
麻烦给出原始的 HTML 块内容。
Zuoqiu-Yingyi commentedon Apr 9, 2023
[-]HTML block with blank line parsing errors cause run-time exceptions[/-][+]Automatically remove blank lines in HTML blocks[/+]🎨 fix #7921
🎨 fix siyuan-note#7921
🎨 fix #7921 (#7997)
Zuoqiu-Yingyi commentedon Apr 15, 2023
貌似还是没完全修好
2.8.5-dev2 中 HTML 块内插入如下内容
关闭输入框后再打开输入框, 结尾会多出一个 标签, 如下所示
Zuoqiu-Yingyi commentedon Apr 15, 2023
应该定位到问题了, 稍后我提交一个 PR
Squashed commit of the following:
🐛 fix siyuan-note#7921
🐛 fix siyuan-note#7921
🐛 fix #7921 (#8008)