mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 00:36:49 +00:00
Add space between type and "required"/"(optional)" (#14648)
This commit is contained in:
parent
b91cd16723
commit
172bbddc8d
@ -104,7 +104,7 @@ module Jekyll
|
|||||||
unless [true, false, 'inclusive', 'exclusive'].include? attr['required']
|
unless [true, false, 'inclusive', 'exclusive'].include? attr['required']
|
||||||
|
|
||||||
isTrue = attr['required'].to_s == 'true'
|
isTrue = attr['required'].to_s == 'true'
|
||||||
startSymbol = isTrue ? '' : '('
|
startSymbol = isTrue ? ' ' : ' ('
|
||||||
endSymbol = isTrue ? '' : ')'
|
endSymbol = isTrue ? '' : ')'
|
||||||
showDefault = isDefault && (defaultValue.length <= MIN_DEFAULT_LENGTH)
|
showDefault = isDefault && (defaultValue.length <= MIN_DEFAULT_LENGTH)
|
||||||
shortDefaultValue = ""
|
shortDefaultValue = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user