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

fixbug: single line block cause error #563

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

iorisa
Copy link
Collaborator

@iorisa iorisa commented Dec 15, 2023

if "\n" not in block:
                block_title = block
                block_content = ""
            else:
                # 将block的标题和内容分开,并分别去掉前后的空白字符
                block_title, block_content = block.split("\n", 1)

@geekan geekan merged commit 919a186 into geekan:env_refactor Dec 15, 2023
@iorisa iorisa deleted the merge/geekan/main_to_env_refactor branch January 2, 2024 11:16
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