mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Fix wrapped line starting with the username role
This commit is contained in:
parent
89afb8cd89
commit
806c1702fb
2 changed files with 5 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ RST_REPLACEMENTS: list[Replacement] = [
|
|||
(r"(?<=\n) {5,6}(?=[\w:`])", " "), # ... and align wrapped text indent
|
||||
(r"(?<=[\s(])`([^`]+)`(?=[^_])", r"``\1``"), # ticks with verbatim ranges.
|
||||
(r":bug:`(\d+)`", r":bug: (#\1)"), # Issue numbers.
|
||||
(r":user:`(\w+)`", r"@\1"), # Users.
|
||||
(r":user:`(\w+)`", r"\@\1"), # Users.
|
||||
]
|
||||
MD_REPLACEMENTS: list[Replacement] = [
|
||||
(r"^ (- )", r"\1"), # remove indent from top-level bullet points
|
||||
|
|
@ -127,6 +127,7 @@ def rst2md(text: str) -> str:
|
|||
|
||||
|
||||
def get_changelog_contents() -> str | None:
|
||||
return CHANGELOG.read_text()
|
||||
if m := RST_LATEST_CHANGES.search(CHANGELOG.read_text()):
|
||||
return m.group(1)
|
||||
|
||||
|
|
|
|||
|
|
@ -67,14 +67,12 @@ def md_changelog():
|
|||
|
||||
### Bug fixes
|
||||
|
||||
- Some fix thanks to
|
||||
- Some fix that mentions user @username.
|
||||
- Some fix that refers to an issue. :bug: (\#5467)
|
||||
1. - bug
|
||||
(\#5467)
|
||||
- Another fix with its own bullet points using correct indentation:
|
||||
- First
|
||||
- Second
|
||||
- Some fix thanks to @username. :bug: (\#5467)
|
||||
- Some fix that mentions user @username.
|
||||
- Some fix that refers to an issue. :bug: (\#5467)
|
||||
- Some fix with its own bullet points using incorrect indentation:
|
||||
- First nested bullet point with some text that wraps to the next line
|
||||
- Second nested bullet point
|
||||
|
|
|
|||
Loading…
Reference in a new issue