Skip to content

Write File effect ignoring white space on the first line of a write. #3459

@Oshimia

Description

@Oshimia

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using a write file effect any white space before the first text of the write is ignored.

Expected Behavior

If a user adds white space by using spaces or the $textPadStart[input, count, countIsLength, padChar] variable in front of the first text it should add that white space into the file.

Steps To Reproduce

  1. Create a new .txt file.
  2. Create a write file effect in Firebot that is pointed at that file.
  3. Use either Replace mode, or Append mode.
  4. Add $textPadStart[text, 5, $false, " "] as the content.
  5. Use the test effect button and look at the content of the file.

Version

5.65.4

What operating system are you using Firebot on?

Windows 11

Relevant log output

Contact Details (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions