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

bug fixed: 文章标题末尾的d被去除 #18

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

linglilongyi
Copy link
Contributor

问题描述:
https://blognas.hwb0307.com/other/6093
在nextcloud的系列文章中发现标题末尾的d没有了

询问博主后是去除文件名后缀'.md'时被一并去除了

filename_prefix = filename.strip(

经过排查,应为使用python的str.strip('.md')时将末尾的(潜在还有标题首的)'m'和'd'一并去除

这个pr用split('.md')[0]的方式代替了str.strip(),但修正代码后,可能还是需要人工修改博客上文章的标题。

@huangwb8 huangwb8 merged commit 9eb3bdf into huangwb8:main Nov 13, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants