Skip to content

Commit

Permalink
Fix example comment so docformatter passes
Browse files Browse the repository at this point in the history
  • Loading branch information
pappasam committed May 8, 2023
1 parent e4849da commit 045d34c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion toml_sort/tomlsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,14 @@ def body_to_tomlsortitems(
need to do this iteration because TomlKit puts comments into end of the
collection they appear in, instead of the start of the next collection.
For example:
For example
```toml
[xyz]
# Comment
[abc]
```
TomlKit would place the comment from the example into the [xyz]
collection, when we would like it to be attached to the [abc]
Expand Down

0 comments on commit 045d34c

Please sign in to comment.