mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +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']
|
||||
|
||||
isTrue = attr['required'].to_s == 'true'
|
||||
startSymbol = isTrue ? '' : '('
|
||||
startSymbol = isTrue ? ' ' : ' ('
|
||||
endSymbol = isTrue ? '' : ')'
|
||||
showDefault = isDefault && (defaultValue.length <= MIN_DEFAULT_LENGTH)
|
||||
shortDefaultValue = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user