Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beautify HTML argument "preserve-newlines" #717

Closed
LaKing opened this issue Jun 18, 2015 · 1 comment
Closed

beautify HTML argument "preserve-newlines" #717

LaKing opened this issue Jun 18, 2015 · 1 comment

Comments

@LaKing
Copy link

LaKing commented Jun 18, 2015

var beautify_html = require('js-beautify').html;

  beat = beautify_html(text, {
       indent_size: 4,
       preserve-newlines: true
 });

Gives an error at the middle of preserve-newlines.
Is this a documentation mistake? It doesent seem to work with underscores.

-p, --preserve-newlines Preserve existing line-breaks (--no-preserve-newlines disables)

@bitwiseman bitwiseman added this to the 1.5.7 milestone Jun 18, 2015
@bitwiseman
Copy link
Member

It looks like you have preserve-newlines instead of preserve_newlines. On the command line it is preserve-newlines, in the options it is preserve_newlines.

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

No branches or pull requests

2 participants