Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-rich-rst for openSUSE:Factory
checked in at 2026-06-30 15:13:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-rich-rst (Old)
and /work/SRC/openSUSE:Factory/.python-rich-rst.new.11887 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rich-rst"
Tue Jun 30 15:13:13 2026 rev:2 rq:1362570 version:2.0.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-rich-rst/python-rich-rst.changes
2026-06-19 17:38:56.870347039 +0200
+++
/work/SRC/openSUSE:Factory/.python-rich-rst.new.11887/python-rich-rst.changes
2026-06-30 15:13:34.004312213 +0200
@@ -1,0 +2,6 @@
+Tue Jun 30 05:49:48 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 2.0.2:
+ * Fix incorrect rendering of bullet lists
+
+-------------------------------------------------------------------
Old:
----
rich_rst-2.0.1.tar.gz
New:
----
rich_rst-2.0.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-rich-rst.spec ++++++
--- /var/tmp/diff_new_pack.mYCi0a/_old 2026-06-30 15:13:34.816339709 +0200
+++ /var/tmp/diff_new_pack.mYCi0a/_new 2026-06-30 15:13:34.820339844 +0200
@@ -17,12 +17,12 @@
Name: python-rich-rst
-Version: 2.0.1
+Version: 2.0.2
Release: 0
Summary: A beautiful reStructuredText renderer for rich
License: MIT
URL: https://github.com/wasi-master/rich-rst
-Source:
https://files.pythonhosted.org/packages/source/r/rich-rst/rich_rst-%{version}.tar.gz
+Source:
https://files.pythonhosted.org/packages/source/r/rich_rst/rich_rst-%{version}.tar.gz
BuildRequires: %{python_module Pygments >= 2.0.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module rich >= 12.0.0}
++++++ rich_rst-2.0.1.tar.gz -> rich_rst-2.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rich_rst-2.0.1/PKG-INFO new/rich_rst-2.0.2/PKG-INFO
--- old/rich_rst-2.0.1/PKG-INFO 2026-05-16 02:47:44.242498000 +0200
+++ new/rich_rst-2.0.2/PKG-INFO 2026-06-25 19:23:36.880336300 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: rich-rst
-Version: 2.0.1
+Version: 2.0.2
Summary: A beautiful reStructuredText renderer for rich
Author-email: Wasi Master <[email protected]>
License-Expression: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rich_rst-2.0.1/pyproject.toml
new/rich_rst-2.0.2/pyproject.toml
--- old/rich_rst-2.0.1/pyproject.toml 2026-05-16 02:41:30.000000000 +0200
+++ new/rich_rst-2.0.2/pyproject.toml 2026-06-25 19:23:20.000000000 +0200
@@ -6,7 +6,7 @@
[project]
name = "rich-rst"
-version = "2.0.1"
+version = "2.0.2"
description = "A beautiful reStructuredText renderer for rich"
readme = "README.md"
license = "MIT"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rich_rst-2.0.1/rich_rst/__init__.py
new/rich_rst-2.0.2/rich_rst/__init__.py
--- old/rich_rst-2.0.1/rich_rst/__init__.py 2026-05-16 02:38:52.000000000
+0200
+++ new/rich_rst-2.0.2/rich_rst/__init__.py 2026-06-25 19:12:31.000000000
+0200
@@ -3171,8 +3171,19 @@
# Use sub-visitor to preserve inline markup (bold, italic,
links, etc.)
child_renderables = self._render_child_inline(child)
if first_content:
- self.renderables.append(Text(indent + marker, end="",
style=marker_style))
- self.renderables.extend(child_renderables)
+ # Prepend the marker directly onto the first Text
+ # renderable so they form a single unit. When rendered
+ # inside a Table.grid() cell, separate renderables are
+ # laid out independently, which would put the marker
+ # and its text on different lines.
+ if child_renderables and
isinstance(child_renderables[0], Text):
+ combined = Text(indent + marker, end="",
style=marker_style)
+ combined.append_text(child_renderables[0])
+ child_renderables[0] = combined
+ self.renderables.extend(child_renderables)
+ else:
+ self.renderables.append(Text(indent + marker,
end="", style=marker_style))
+ self.renderables.extend(child_renderables)
first_content = False
else:
# Prepend continuation indent to first renderable if
it's text
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rich_rst-2.0.1/rich_rst.egg-info/PKG-INFO
new/rich_rst-2.0.2/rich_rst.egg-info/PKG-INFO
--- old/rich_rst-2.0.1/rich_rst.egg-info/PKG-INFO 2026-05-16
02:47:44.000000000 +0200
+++ new/rich_rst-2.0.2/rich_rst.egg-info/PKG-INFO 2026-06-25
19:23:36.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: rich-rst
-Version: 2.0.1
+Version: 2.0.2
Summary: A beautiful reStructuredText renderer for rich
Author-email: Wasi Master <[email protected]>
License-Expression: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rich_rst-2.0.1/tests/test_block_elements.py
new/rich_rst-2.0.2/tests/test_block_elements.py
--- old/rich_rst-2.0.1/tests/test_block_elements.py 2026-05-15
15:00:08.000000000 +0200
+++ new/rich_rst-2.0.2/tests/test_block_elements.py 2026-06-25
19:14:48.000000000 +0200
@@ -304,15 +304,16 @@
def test_bullet_list_marker_text_is_bullet_char(make_visitor):
visitor = make_visitor("* item\n")
texts = [r for r in visitor.renderables if isinstance(r, Text)]
- markers = [t for t in texts if t.plain == " • "]
- assert markers, "Bullet list must produce a Text with plain text ' • '"
+ markers = [t for t in texts if t.plain.lstrip().startswith("•")]
+ assert markers, "Bullet list must produce a Text starting with '•'"
def test_bullet_list_marker_style_is_bold_yellow(make_visitor):
visitor = make_visitor("* item\n")
texts = [r for r in visitor.renderables if isinstance(r, Text)]
- markers = [t for t in texts if t.plain == " • "]
+ markers = [t for t in texts if t.plain.lstrip().startswith("•")]
assert markers
+ # The marker style becomes the base style of the combined text
assert str(markers[0].style) == "bold yellow", (
f"Bullet marker style must be 'bold yellow', got {markers[0].style!r}"
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/rich_rst-2.0.1/tests/test_lists.py
new/rich_rst-2.0.2/tests/test_lists.py
--- old/rich_rst-2.0.1/tests/test_lists.py 2026-05-15 15:00:08.000000000
+0200
+++ new/rich_rst-2.0.2/tests/test_lists.py 2026-06-25 19:15:34.000000000
+0200
@@ -52,15 +52,16 @@
def test_bullet_list_marker_plain_text_is_bullet_char(make_visitor):
visitor = make_visitor("* item\n")
texts = [r for r in visitor.renderables if isinstance(r, Text)]
- markers = [t for t in texts if t.plain == " • "]
- assert markers, "Bullet list must produce a Text with plain text ' • '"
+ markers = [t for t in texts if t.plain.lstrip().startswith("•")]
+ assert markers, "Bullet list must produce a Text starting with '•'"
def test_bullet_list_marker_style_is_bold_yellow(make_visitor):
visitor = make_visitor("* item\n")
texts = [r for r in visitor.renderables if isinstance(r, Text)]
- markers = [t for t in texts if t.plain == " • "]
+ markers = [t for t in texts if t.plain.lstrip().startswith("•")]
assert markers
+ # The marker style becomes the base style of the combined text
assert str(markers[0].style) == "bold yellow", (
f"Bullet marker style must be 'bold yellow', got {markers[0].style!r}"
)
@@ -165,7 +166,7 @@
def test_nested_bullet_level1_uses_bullet_marker(make_visitor):
visitor = make_visitor("* outer\n\n * inner\n")
texts = [r for r in visitor.renderables if isinstance(r, Text)]
- l1_markers = [t for t in texts if t.plain == " • "]
+ l1_markers = [t for t in texts if t.plain.lstrip().startswith("•")]
assert l1_markers, "Level-1 bullet must use the '•' filled-circle marker"