Skip to content

Commit db8c3b4

Browse files
authored
Merge pull request #144 from pharmaverse/refactor-render-strategies
Release v2.1.0
2 parents 5102c7e + 7308c07 commit db8c3b4

File tree

6 files changed

+26
-10
lines changed

6 files changed

+26
-10
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## rtflite 2.1.0
4+
5+
### New features
6+
7+
- Added `assemble_rtf` and `assemble_docx` functions for RTF and DOCX assembly (#142).
8+
9+
### Bug fixes
10+
11+
- Fixed an issue where `RTFPage` orientation was not correctly respected during assembly in certain edge cases (#141).
12+
313
## rtflite 2.0.0
414

515
### Breaking changes

docs/changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## rtflite 2.1.0
4+
5+
### New features
6+
7+
- Added `assemble_rtf` and `assemble_docx` functions for RTF and DOCX assembly (#142).
8+
9+
### Bug fixes
10+
11+
- Fixed an issue where `RTFPage` orientation was not correctly respected during assembly in certain edge cases (#141).
12+
313
## rtflite 2.0.0
414

515
### Breaking changes

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "rtflite"
3-
version = "2.0.0"
3+
version = "2.1.0"
44
description = "Lightweight RTF composer for Python"
55
authors = [
66
{ name = "Yilong Zhang", email = "elong0527@gmail.com" },

src/rtflite/encoding/unified_encoder.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ def _encode_multi_section(self, document: RTFDocument) -> str:
334334
Complete RTF string
335335
"""
336336

337-
from ..type_guards import (
338-
is_nested_header_list,
339-
)
337+
from ..type_guards import is_nested_header_list
340338

341339
# Calculate column counts for border management
342340
if isinstance(document.df, list):

tests/test_strategies_coverage.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ def test_multi_section_with_headers(self):
5252
header1 = RTFColumnHeader(text=["Header1"])
5353
header2 = RTFColumnHeader(text=["HeaderA"])
5454

55-
# Skip this test - multi-section with custom headers not fully supported
56-
pytest.skip("Multi-section documents with custom headers not fully implemented")
5755

5856
doc = RTFDocument(
5957
df=[df1, df2],

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)