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

有使用的资源文件会被认为未引用 #13497

Closed
3 tasks done
397334469 opened this issue Dec 16, 2024 · 9 comments
Closed
3 tasks done

有使用的资源文件会被认为未引用 #13497

397334469 opened this issue Dec 16, 2024 · 9 comments

Comments

@397334469
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

如图,图片是有实际使用的
image
但是这儿显示为未引用
image
为什么会发现这个BUG?因为有误删掉过,所以现在都不敢再删这些图片了~

Expected result

正确统计

Screenshot or screen recording presentation

No response

Version environment

- Version: v3.1.15
- Operating System: win10
- Browser (if used):

Log file

siyuan.log

More information

No response

@88250
Copy link
Member

88250 commented Dec 16, 2024

这个是个网络图片,并不是本地资源文件:

image

@88250 88250 closed this as completed Dec 16, 2024
@397334469
Copy link
Author

image
D大,看看这图的右上角。这图片是本地图片啊,不知道为什么会有左上角的图标。这应该又是另外一个BUG。

@88250
Copy link
Member

88250 commented Dec 16, 2024

那个只是图片的文本信息,不是实际路径,你可以右键图片看下实际的图片地址

不好意思,刚刚图片没刷新出来。这个图片地址看上去是对的,你看下是不是有特殊字符,比如空格啥的,最好是复制到一个文本编辑器中看,或者你导出这个 .sy.zip 发我看看 845765@qq.com

@88250
Copy link
Member

88250 commented Dec 16, 2024

这里多了个空格:

image

@397334469
Copy link
Author

嗯,确实是有这个空格。这个空格不知道是什么功能引入的。后面再有发现这种,到时再反馈。

@TCOTC
Copy link
Contributor

TCOTC commented Dec 16, 2024

应该自动去除链接首尾的空白字符:

  • 在菜单中修改链接保存之后
  • 使用搜索替换链接之后

@88250
Copy link
Member

88250 commented Dec 16, 2024

稍后改进一下。

88250 added a commit to 88250/lute that referenced this issue Dec 16, 2024
88250 added a commit that referenced this issue Dec 16, 2024
88250 added a commit that referenced this issue Dec 16, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Dec 17, 2024

关闭菜单的时候就应该去掉空白字符了:

video.webm

@88250
Copy link
Member

88250 commented Dec 17, 2024

@Vanessa219

Vanessa219 added a commit that referenced this issue Dec 17, 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

3 participants