Skip to content

Commit

Permalink
Preserve original body contents in action section
Browse files Browse the repository at this point in the history
To resolve danielgtaylor/aglio#357, Generate action
body from the Attributes only when missing specified body.  line feed is need
to get rid of following message...

    ✗ #433: Line exceeds maximum allowed length. Length is 84, max is 80.
  • Loading branch information
Gasol committed Apr 20, 2019
1 parent c52a482 commit 1d5c177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ decorate = (api, md, slugCache, verbose) ->
JSON.stringify dataStructure.content[0], null, 2)
console.log(err)

if item.content and not process.env.DRAFTER_EXAMPLES
if not item.body and
item.content and not process.env.DRAFTER_EXAMPLES
for dataStructure in item.content
if dataStructure.element is 'dataStructure'
try
Expand Down

0 comments on commit 1d5c177

Please sign in to comment.