Skip to content

Commit

Permalink
Minor fixups in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed Oct 11, 2024
1 parent c4d25a3 commit 81b1cc0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/HTML.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ However, **Pull Request are welcome** to implement missing features!

### Default font

_New in [:octicons-tag-24: 2.7.10](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_
_New in [:octicons-tag-24: 2.8.0](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_

The default font used by [`FPDF.write_html()`](https://py-pdf.github.io/fpdf2/fpdf/fpdf.html#fpdf.fpdf.FPDF.write_html) is **Times**.

Expand Down Expand Up @@ -178,7 +178,7 @@ pdf.output("html_helvetica.pdf")

### Page breaks

_New in [:octicons-tag-24: 2.7.10](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_
_New in [:octicons-tag-24: 2.8.0](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_

Page breaks can be triggered explicitly using the [break-before](https://developer.mozilla.org/en-US/docs/Web/CSS/break-before) or [break-after](https://developer.mozilla.org/en-US/docs/Web/CSS/break-after) CSS properties.
For exemple you can use:
Expand Down
2 changes: 1 addition & 1 deletion docs/Shapes.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ pdf.output("solid_arc.pdf")
![](solid_arc.png)

## Bezier Curve ##
_New in [:octicons-tag-24: 2.7.10](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_
_New in [:octicons-tag-24: 2.8.0](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_

Using [`bezier()`](fpdf/fpdf.html#fpdf.fpdf.FPDF.bezier) to create a cubic Bézier curve:
```python
Expand Down
2 changes: 1 addition & 1 deletion docs/Templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ f.render("./template.pdf")
See template.py or [Web2Py] (Web2Py.md) for a complete example.

# Example - Elements defined in JSON file #
_New in [:octicons-tag-24: 2.7.10](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_
_New in [:octicons-tag-24: 2.8.0](https://github.com/py-pdf/fpdf2/blob/master/CHANGELOG.md)_

The JSON file must consist of an array of objects.
Each object with its name/value pairs define a template element:
Expand Down
2 changes: 1 addition & 1 deletion fpdf/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class TitleStyle(TextStyle):
def __init__(self, *args, **kwargs):
warnings.warn(
(
"fpdf.TitleStyle is deprecated since 2.7.10."
"fpdf.TitleStyle is deprecated since 2.8.0."
" It has been replaced by fpdf.TextStyle."
),
DeprecationWarning,
Expand Down
2 changes: 1 addition & 1 deletion fpdf/fpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def write_html(self, text, *args, **kwargs):
pre_code_font (str): [**DEPRECATED since v2.7.9**]
font to use for `<pre>` & `<code>` blocks - Set `tag_styles` instead
warn_on_tags_not_matching (bool): control warnings production for unmatched HTML tags. Defaults to `True`.
tag_indents (dict): [**DEPRECATED since v2.7.10**]
tag_indents (dict): [**DEPRECATED since v2.8.0**]
mapping of HTML tag names to numeric values representing their horizontal left identation. - Set `tag_styles` instead
tag_styles (dict[str, fpdf.fonts.TextStyle]): mapping of HTML tag names to `fpdf.TextStyle` or `fpdf.FontFace` instances
"""
Expand Down
4 changes: 2 additions & 2 deletions fpdf/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def __init__(
pre_code_font (str): [**DEPRECATED since v2.7.9**]
font to use for `<pre>` & `<code>` blocks - Set `tag_styles` instead
warn_on_tags_not_matching (bool): control warnings production for unmatched HTML tags. Defaults to `True`.
tag_indents (dict): [**DEPRECATED since v2.7.10**]
tag_indents (dict): [**DEPRECATED since v2.8.0**]
mapping of HTML tag names to numeric values representing their horizontal left identation. - Set `tag_styles` instead
tag_styles (dict[str, fpdf.fonts.TextStyle]): mapping of HTML tag names to `fpdf.TextStyle` or `fpdf.FontFace` instances
font_family (str): optional font family. Default to Times.
Expand Down Expand Up @@ -476,7 +476,7 @@ def __init__(
if tag_indents:
warnings.warn(
(
"The tag_indents parameter is deprecated since v2.7.10 "
"The tag_indents parameter is deprecated since v2.8.0 "
"and will be removed in a future release. "
"Set the `tag_styles` parameter instead."
),
Expand Down

0 comments on commit 81b1cc0

Please sign in to comment.