From 9e6f607f1ede75ccfe7fb75589fc260a3d2fafed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Sun, 26 Apr 2026 22:41:56 +0200 Subject: [PATCH 1/3] Add note regarding white space at end of strings for paragraph recognizion --- pygmt/src/paragraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/paragraph.py b/pygmt/src/paragraph.py index 94416b7ac7c..01d23b4e7a2 100644 --- a/pygmt/src/paragraph.py +++ b/pygmt/src/paragraph.py @@ -48,8 +48,8 @@ def paragraph( # noqa: PLR0913 spacing. The text can be aligned left, center, right, or justified. Multiple paragraphs can be provided as a sequence of strings, where each string - represents a separate paragraph, or as a single string with a blank line (``\n\n``) - separating the paragraphs. + needs to end with a white space and represents a separate paragraph, or as a single + string with a blank line (``\n\n``) separating the paragraphs. Full GMT docs at :gmt-docs:`text.html`. From b84867a17f09d0ec2e82c69f5b97e21a215ed3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Mon, 27 Apr 2026 14:17:22 +0200 Subject: [PATCH 2/3] Revert note regarding blank line --- pygmt/src/paragraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/src/paragraph.py b/pygmt/src/paragraph.py index 01d23b4e7a2..94416b7ac7c 100644 --- a/pygmt/src/paragraph.py +++ b/pygmt/src/paragraph.py @@ -48,8 +48,8 @@ def paragraph( # noqa: PLR0913 spacing. The text can be aligned left, center, right, or justified. Multiple paragraphs can be provided as a sequence of strings, where each string - needs to end with a white space and represents a separate paragraph, or as a single - string with a blank line (``\n\n``) separating the paragraphs. + represents a separate paragraph, or as a single string with a blank line (``\n\n``) + separating the paragraphs. Full GMT docs at :gmt-docs:`text.html`. From 9587ec99c2e9f2f75f1b60bea5a1e6c4116cda49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yvonne=20Fr=C3=B6hlich?= Date: Mon, 27 Apr 2026 14:23:11 +0200 Subject: [PATCH 3/3] Add note regarding paragraph separation --- pygmt/src/paragraph.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pygmt/src/paragraph.py b/pygmt/src/paragraph.py index 94416b7ac7c..5eac4d8e882 100644 --- a/pygmt/src/paragraph.py +++ b/pygmt/src/paragraph.py @@ -49,7 +49,8 @@ def paragraph( # noqa: PLR0913 Multiple paragraphs can be provided as a sequence of strings, where each string represents a separate paragraph, or as a single string with a blank line (``\n\n``) - separating the paragraphs. + separating the paragraphs. Please note the paragraphs typeset on the plot are not + separated by a blank line, but by starting a new line. Full GMT docs at :gmt-docs:`text.html`.