Skip to content

Commit

Permalink
Place newlines before Schema and Examples code
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Nov 4, 2024
1 parent b849b50 commit 4404795
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Restyler/Docs.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ renderConfDoc ConfDoc {..} =
, Just
$ Lines
$ ("Schema:" :)
$ ("" :)
$ map (Line . pure . Raw . (" " <>))
$ filter (/= "# or null")
$ map (mconcat . map chunkText)
Expand All @@ -126,6 +127,7 @@ renderConfDoc ConfDoc {..} =
<$> confDocDefault
, Lines
. ("Examples:" :)
. ("" :)
. map (Line . pure . Raw . (" " <>))
. intercalate [""] -- blank between examples
. map (lines . pack)
Expand Down

0 comments on commit 4404795

Please sign in to comment.