From 743c72ecf75048862cdec7bc0ea9ce2e25bdc268 Mon Sep 17 00:00:00 2001 From: Patrick Ingraham Date: Thu, 12 Oct 2023 12:00:17 -0700 Subject: [PATCH] Add notes section to generated PDF. (#2) --- doorstop/core/publisher.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doorstop/core/publisher.py b/doorstop/core/publisher.py index 3cb7b415..53ec35cf 100644 --- a/doorstop/core/publisher.py +++ b/doorstop/core/publisher.py @@ -331,6 +331,12 @@ def _lines_markdown(obj, linkify=False): yield "" # break before reference yield "*Verification plan:*" # break before text yield from item._data['verification plan'].splitlines() + if 'notes' in item._data.keys(): + if item._data['notes']: + if settings.PUBLISH_CHILD_LINKS: + yield "" # break before reference + yield "*Notes:*" # break before text + yield from item._data['notes'].splitlines() # Parent links if item.links: yield "" # break before links