Skip to content

SYSTEM_PROMPT collapses all paragraph breaks into a run-on string #47

Description

@arpan7sarkar

Problem

Lines within the same paragraph are currently joined incorrectly, which can introduce unwanted line breaks in the output.

Expected behavior

For each paragraph:

  1. Join all lines within the paragraph using a single space.
  2. Join separate paragraphs using \n\n.

For example:

Line one
Line two

Next paragraph
continues here

should become:

Line one Line two

Next paragraph continues here

Fix

Update the text-processing logic to:

  • join each paragraph's lines with " "
  • join the resulting paragraphs with "\n\n"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions