Skip to content

Navigation Menu

Sign in
Sign up

fix: trim leading and trailing whitespace in output fields - #465

Open
bigcat88 wants to merge 1 commit into
main from
fix/15/trim-output-whitespace
Open

fix: trim leading and trailing whitespace in output fields #465
bigcat88 wants to merge 1 commit into
main from
fix/15/trim-output-whitespace

Conversation

@bigcat88

@bigcat88 bigcat88 commented Feb 17, 2026

Copy link
Copy Markdown
Member

Fixes #15

LLM outputs often include leading/trailing whitespace and newlines. The formattedValue computed property in TextInput.vue already does .trim(), but it was only used for the copy button and the hasValue check -- the actual display still used the raw value prop.

This change uses formattedValue for the :model-value binding when isOutput is true, so output fields display trimmed text. Input fields are not affected.

Before (empty lines and leading spaces at top of output):

before

After (text starts immediately, no wasted space):

after

Closes #15
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
bigcat88 force-pushed the fix/15/trim-output-whitespace branch from 3eaa8eb to f70e455 Compare February 17, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Trim spaces and new lines in the outputs

1 participant

AltStyle によって変換されたページ (->オリジナル) /