fix(org,rst): keep item tags and directive titles whole - #507
Merged
Merged
Conversation
An item tag before " :: " stays with the bullet. The description after the separator still reflows.
admonition, rubric, topic, sidebar, list-table, and contents titles stay on the opener. Body prose under the directive still reflows, and note and warning same-line bodies still split.
A description on the line after an item tag stays prose and still splits. An indented directive title stays structure until the blank line, and the body after that blank still splits.
Org item tags run to the last " :: " on the line. An earlier separator stays in the tag, and the description after the last one still splits.
The SnapperCheck continuation lines up under "- =SnapperCheck= :: ". The conventional-commit tags in the contributing guide already match.
The item-tag predicate and two test inputs were over the width.
That line is the body. It splits. Treating it as more title kept "Body here. Second body." on one line.
rustfmt fits that string on the assignment line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An Org item tag before
::was reflowed as prose.The tag now stays on the item line. The description after it still splits.
A same-line title on
admonition,rubric,topic,sidebar,list-table, andcontentswas reflowed as prose.That title now stays on the directive line. The body under the directive still splits.
noteandwarningsame-line bodies still split.