Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Fix open slices and improve slice wrapping #37

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

FuegoFro
Copy link
Collaborator

There was a bug where slices that were open at the end (eg foo[1:]) would be rendered without the : character. This adds tests for open slices and fixes the implementation to always include the :. It also adds tests for wrapping long slices, and the corresponding implementation.

There was a bug where slices that were open at the top (eg `foo[1:]`) would be rendered without the `:` character. This adds tests for open slices and fixes the implementation to always include the `:`. It also adds tests for wrapping long slices, and the corresponding implementation.
@patrick91 patrick91 merged commit 9cfa006 into prettier:master Feb 20, 2018
@FuegoFro FuegoFro deleted the list_slices branch March 2, 2018 19:08
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.

None yet

2 participants