parent
b7ea432cea
commit
795d18de90
|
@ -471,6 +471,30 @@ If lists of assignments or properties should be vertically aligned for faster an
|
|||
}
|
||||
```
|
||||
|
||||
#### [CSS - No lead zero](#css---no-lead-zero)
|
||||
|
||||
**Namespace**: `css`
|
||||
|
||||
**Key**: `no_lead_zero`
|
||||
|
||||
**Type**: `boolean`
|
||||
|
||||
**Supported Beautifiers**: [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
**Description**:
|
||||
|
||||
If in CSS values leading 0s immediately preceeding a decimal should be removed or prevented. (Supported by Pretty Diff)
|
||||
|
||||
**Example `.jsbeautifyrc` Configuration**
|
||||
|
||||
```json
|
||||
{
|
||||
"css": {
|
||||
"no_lead_zero": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### [D - Config Path](#d---config-path)
|
||||
|
||||
**Namespace**: `d`
|
||||
|
@ -5531,6 +5555,30 @@ If lists of assignments or properties should be vertically aligned for faster an
|
|||
}
|
||||
```
|
||||
|
||||
#### [CSS - No lead zero](#css---no-lead-zero)
|
||||
|
||||
**Namespace**: `css`
|
||||
|
||||
**Key**: `no_lead_zero`
|
||||
|
||||
**Type**: `boolean`
|
||||
|
||||
**Supported Beautifiers**: [`Pretty Diff`](#pretty-diff)
|
||||
|
||||
**Description**:
|
||||
|
||||
If in CSS values leading 0s immediately preceeding a decimal should be removed or prevented. (Supported by Pretty Diff)
|
||||
|
||||
**Example `.jsbeautifyrc` Configuration**
|
||||
|
||||
```json
|
||||
{
|
||||
"css": {
|
||||
"no_lead_zero": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### [HTML - Indent size](#html---indent-size)
|
||||
|
||||
**Namespace**: `html`
|
||||
|
|
|
@ -27,6 +27,7 @@ module.exports = class PrettyDiff extends Beautifier
|
|||
]
|
||||
wrap: "wrap_line_length"
|
||||
space: "space_after_anon_function"
|
||||
noleadzero: "no_lead_zero"
|
||||
# Apply language-specific options
|
||||
CSV: true
|
||||
ERB: true
|
||||
|
|
|
@ -78,5 +78,9 @@ module.exports = {
|
|||
default: false
|
||||
description: "If lists of assignments or properties should be \
|
||||
vertically aligned for faster and easier reading."
|
||||
|
||||
no_lead_zero:
|
||||
type: 'boolean'
|
||||
default: false
|
||||
description: "If in CSS values leading 0s immediately preceeding \
|
||||
a decimal should be removed or prevented."
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue