Skip to content

Commit

Permalink
Add notes section to generated PDF. (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickingraham authored Oct 12, 2023
1 parent 1df012f commit 743c72e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doorstop/core/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 743c72e

Please sign in to comment.