Commit 6faab80
authored
fix: Doc Maker content duplication bug and add nested/parenthesized list support (#321)
* Don't recursively step down into elements within a list item. This fixes an issue where content in lists were being duplicated
* Initial support for nested lists
* Initial look at supporting (1), (a) and (i) as numbered lists
* Slightly fixed the issue where numbering was not being displayed in some cases
* Fix a bug where if there is a second list, then the numbers for the first list don't display
* Test different numbered formats and fix issues along the way
* consistent indenting
* Fix double indentation of the first nested list and wrote a unit test
* Restore the ability for a list numbering to cross over multiple sections
* Don't need the zip packages in the codebase
* Fix repository validation checks
* Test edge case where paragraphs before lists sometimes don't get included in the document
* Fix the bug where paragraphs before lists sometimes don't appear in the document
* unit test for an alphabet list not transofmring into a roman numerals list
* Fix bug where an alphabet list was transforming into a roman numerals list
* unit test for 100 roman numerals
* Full roman numeral support to pass the previous unit test
* Update alphabet test to check that none of the characters are getting mixed up with roman numerals
* doesn't belong in codebase
* fix the formatting to pass validation
* format again with the correct line-length option this time
* Fix warnings
* Unit test for capital letter numbered lists
* Fix capital letter numbered list
* python -m ruff format --line-length 120 doc-maker
* Unit test to reproduce issue with disappearing paragraph between list items with no new lines in-between
* Fix the bug where a paragraph between list items was disappearing
* ah yes, need to format the files again
* This is a feature enhancement and bug fixes, not a breaking change1 parent ff1d164 commit 6faab80
4 files changed
Lines changed: 1921 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
0 commit comments