Skip to content

Commit

Permalink
update doc, deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jdum committed Nov 23, 2024
1 parent 382e598 commit ece1798
Show file tree
Hide file tree
Showing 12 changed files with 2,882 additions and 2,235 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Odfdo Release Notes

## [3.10.0] - 2024-11-23

- Fix a bug of `Paragraph.set_span()` when using an offset argument of zero (the Span was not created). Added 3
methods related to searching strings in paragraphs: `search_first()`, `search_all()` and `text_at()`. These methods permit to search some string with regex in a paragraph and get their position, `text_at()` returns the text content at a given position.
- Fix the "pretty" option of `Document.save()`. "pretty" is now the default for odfdo-folder.

Added a new recipe showing several methods to change the style of a paragraph or words in a pragraph with the use of `Paragraph.style = style.name` and `Paragraph.set_span()`.

### Added

- Added `Element.search_first()`, `Element.search_all()` , `Element.text_at()`.
- Added `change_paragraph_styles_or_spans.py` recipe (issue #21).

### Changed

- `odfdo-folder` script now writes XML files with the "pretty" option by default.

### Fixed

- Fix `Paragraph.set_span()` when using an offset argument of zero (issue #21).
- Fix the "pretty" option of `Document.save()` (issue #28).

## [3.9.4] - 2024-11-06

Fix a performance bug on huge .ods tables when number of rows is a large (several thousand).
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ The tests should run for a few seconds or minutes and issue no error.

The full test suite uses `tox` to check different `Python` and `lxml` versions.

A special effort is made to limit the dependencies of this library: the only dependency (outside development) is `lxml`. The `lxml` versions depend mainly on the version of Python used, see the `pyproject.toml` file for details.

# Usage

from odfdo import Document, Paragraph
Expand Down
2 changes: 1 addition & 1 deletion doc/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<link rel="icon" href="/assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.44">
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.45">



Expand Down
Loading

0 comments on commit ece1798

Please sign in to comment.