Skip to content

Always preserve new lines for array and object literals and additional constructs like blocks.#2518

Merged
CyrusNajmabadi merged 2 commits into
masterfrom
preserveNewLines3
Mar 29, 2015
Merged

Always preserve new lines for array and object literals and additional constructs like blocks.#2518
CyrusNajmabadi merged 2 commits into
masterfrom
preserveNewLines3

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

Fixes: #2513

This is an alternative approach to #2517 . Instead of only trying to preserve things for array and object literals, we also handle things like blocks on a single line, functions on a single line, etc.

@JsonFreeman
Copy link
Copy Markdown
Contributor

👍

Conflicts:
	tests/baselines/reference/ES5For-of22.js
CyrusNajmabadi added a commit that referenced this pull request Mar 29, 2015
Always preserve new lines for array and object literals and additional constructs like blocks.
@CyrusNajmabadi CyrusNajmabadi merged commit 78197ed into master Mar 29, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the preserveNewLines3 branch March 29, 2015 06:56
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Single line preservation doesn't work for array and object literals

3 participants