Skip to content

Commit

Permalink
Fix bug with the gap between form content and prompt content
Browse files Browse the repository at this point in the history
Previously, an extra newline was added for each field prompt. This fix ensures only ever one newline is present between the form content and the prompt content
  • Loading branch information
fractaledmind committed Oct 8, 2024
1 parent 053d23e commit 0482a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prompts/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def submit

def prepend_form_content_to_prompt(prompt)
prompt.prepare_content
@content.gap
prompt.prepend_content([SPACE])
prompt.prepend_content(*@content.slots)
end
end
Expand Down

0 comments on commit 0482a6a

Please sign in to comment.