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

Create test files for moving sectioning commands to their own line #36

Closed

Conversation

cdesaintguilhem
Copy link
Contributor

This PR is related to #13; it adds two test files that capture the expected behaviour for formatting sectioning commands: if such a command is on a line with other text, it should be moved to its own line. This should apply to all sectioning commands present on the same line. However (as discussed), no new empty lines should be added around the new line to which the sectioning command was moved.

@WGUNDERWOOD
Copy link
Owner

Thanks for this. Of course, the new tests do not pass at the moment, so I will leave this open until the feature has been implemented.

@WGUNDERWOOD
Copy link
Owner

Can this behaviour be implemented using the new regexes introduced in #42 ?

@cdesaintguilhem
Copy link
Contributor Author

Most probably, yes. Now that #42 has been merged, I can base a branch on that and check whether it's enough to use the existing splitting regex with maybe an additional one for the needs_new_line logic.

@cdesaintguilhem
Copy link
Contributor Author

Closing this PR because it's superseded by #45.

@cdesaintguilhem cdesaintguilhem deleted the pr-test-sections branch October 18, 2024 07:50
@cdesaintguilhem cdesaintguilhem restored the pr-test-sections branch October 24, 2024 10:48
@cdesaintguilhem cdesaintguilhem deleted the pr-test-sections branch October 24, 2024 10:49
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