From a56b9f1f0153b64b38841a88de884e22da03cd96 Mon Sep 17 00:00:00 2001 From: Mattkmmr <49940207+Mattkmmr@users.noreply.github.com> Date: Mon, 23 May 2022 13:13:20 +0200 Subject: [PATCH] Update docstring --- gramps/gen/plug/docgen/textdoc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gen/plug/docgen/textdoc.py b/gramps/gen/plug/docgen/textdoc.py index cd26ffd6d..5f87d4f69 100644 --- a/gramps/gen/plug/docgen/textdoc.py +++ b/gramps/gen/plug/docgen/textdoc.py @@ -262,7 +262,7 @@ class TextDoc(metaclass=ABCMeta): self.write_text(piece, links=links) @abstractmethod - def add_media(self, name, align, w_cm, h_cm, alt='', style_name=None, crop=None): + def add_media(self, name, align, w_cm, h_cm, alt='', style_name=None, img_dpi=72.0, crop=None): """ Add a photo of the specified width (in centimeters). @@ -273,6 +273,7 @@ class TextDoc(metaclass=ABCMeta): :param h_cm: height in centimeters :param alt: an alternative text to use. Useful for eg html reports :param style_name: style to use for captions + :img_dpi: DPI (dots per inch) used for the image :param crop: image cropping parameters """