processing / processing/p5.js

[p5.js 2.0+ Bug Report]: save() ignores the CRLF option when saving text files

Open Beginner friendly
#9,141 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area:IO p5.js 2.0+
Dominant language
JavaScript
Stars
24k
Forks
3.8k
Avg merge
3d 16h
Merged PRs (30d)
25

Description

Most appropriate sub-area of p5.js?
  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • WebGPU
  • p5.strands
  • Build process
  • Unit testing
  • Internationalization
  • Friendly errors
  • Other (specify if possible)
p5.js version

2.3.1

Web browser and version

Any

Operating system

No response

Steps to reproduce this
Steps:
  1. Create a new p5.js 2.0+ sketch.
  2. Add and run the following code.
  3. Inspect the downloaded output.txt file's line endings.
function setup() {
  save(['a', 'b'], 'output', 'txt', true);
}

Can I be assigned this issue @ksen0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the p5.js save() entry point and trace how the final true argument is handled when saving text. Run the provided sketch, inspect output.txt line endings, and confirm the completed behavior produces CRLF line endings when requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.