Skip to content

pug Deprecated pretty#2582

Merged
devongovett merged 1 commit into
parcel-bundler:masterfrom
miewx:patch-1
Jan 30, 2019
Merged

pug Deprecated pretty#2582
devongovett merged 1 commit into
parcel-bundler:masterfrom
miewx:patch-1

Conversation

@miewx

@miewx miewx commented Jan 27, 2019

Copy link
Copy Markdown
Contributor

see https://pugjs.org/api/reference.html#options

pretty: boolean | string

[Deprecated.] Adds whitespace to the resulting HTML to make it easier for a human to read using ' ' as indentation. If a string is specified, that will be used as indentation instead (e.g. '\t'). We strongly recommend against using this option. Too often, it creates subtle bugs in your templates because of the way it alters the interpretation and rendering of whitespace, and so this feature is going to be removed. Defaults to false.

↪️ Pull Request

💻 Examples

🚨 Test instructions

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs


see https://pugjs.org/api/reference.html#options

pretty: boolean | string

[Deprecated.] Adds whitespace to the resulting HTML to make it easier for a human to read using '  ' as indentation. If a string is specified, that will be used as indentation instead (e.g. '\t'). We strongly recommend against using this option. Too often, it creates subtle bugs in your templates because of the way it alters the interpretation and rendering of whitespace, and so this feature is going to be removed. Defaults to false.
@devongovett devongovett merged commit 0ada4d6 into parcel-bundler:master Jan 30, 2019
@mischnic mischnic mentioned this pull request Jan 30, 2019
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