Skip to content

Update to 1.9.0-beta1#43

Merged
aeschli merged 8 commits intomicrosoft:masterfrom
bitwiseman:update-1.9.0-beta1
Jan 28, 2019
Merged

Update to 1.9.0-beta1#43
aeschli merged 8 commits intomicrosoft:masterfrom
bitwiseman:update-1.9.0-beta1

Conversation

@bitwiseman
Copy link
Contributor

@bitwiseman bitwiseman commented Jan 14, 2019

1.9.0 will be out soon.

It addresses a number of line wrapping issues (such as beautifier/js-beautify#1324). If we can update this plugin to 1.9.0-beta1, it will give the next release a lot of good testing.

@bitwiseman
Copy link
Contributor Author

bitwiseman commented Jan 14, 2019

I'm unclear why this failed. Any help would be appreciated.

The behavior of the html beautifier changed to preserve leading
whitespace and use it to determing base indent level.
Trimming the leading whitespace makes beautifier behave the same
as it was previously.
When indent_char is tab, indent_size is now used to calculate the number
of columns an indent uses.  This matters for wrap attributes indenting
and for line length wrapping calculations.
Previously, if a range started and ended inside an element it would not be formatted.
However, if it started inside an element but ended outside it would format.

With this change as long as the range starts outside on element it will format.
This is safe as the beautifier formats incomplete html just fine up to where it ends.
Improved support for php, handlebars, and other template languages.
This support is far from complete but generally works for
inline use cases where formatting inside the templating
only needs preserving.
@aeschli
Copy link
Collaborator

aeschli commented Jan 26, 2019

Thanks a lot @bitwiseman, I'll merge on Monday for the January Build

@bitwiseman
Copy link
Contributor Author

bitwiseman commented Jan 26, 2019

@aeschli
Excellent, thanks. This is pretty major change.
It has passed on my tests of course, but if you have any time to run some manual tests on it, that would be much appreciated.

@aeschli aeschli merged commit 069cb75 into microsoft:master Jan 28, 2019
@aeschli aeschli added this to the December/January 2019 milestone Jan 28, 2019
@bitwiseman bitwiseman deleted the update-1.9.0-beta1 branch January 29, 2019 07:55
@bitwiseman
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants