Add space between type and "required"/"(optional)" (#14648)

This commit is contained in:
Tom Brien 2020-09-29 16:43:10 +01:00 committed by GitHub
parent b91cd16723
commit 172bbddc8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ""