.attr-backdrop.save

div(id="#{attribute}_display_#{id}" class="attr-value")
  if value && value != ''
    if kind == 'markdown'
      != value_html
    else
      = value
  else if canEdit
    .placeholder Add #{attribute}
  else
    .placeholder —

form.attr-editor
  if kind == 'markdown'
    textarea(class="markdown editor" autofocus="autofocus" placeholder="Add #{attribute}")= value
  else
    input(class="plaintext editor full" value=value ? value : '' autofocus="autofocus" type="text")

.attr-backdrop.save

div(id="#{attribute}_display_#{id}" class="attr-value")
  if /\S/.test(value)
    if kind == 'markdown'
      != value_html
    else
      = value
  else if canEdit
    .placeholder Add #{attribute}
  else
    .placeholder —

form.attr-editor
  if kind == 'markdown'
    textarea(class="markdown editor" autofocus="autofocus" placeholder="Add #{attribute}")= value
  else
    input(class="plaintext editor full" value=value ? value : '' autofocus="autofocus" type="text")

Test if the value contains any characters other than a whitespace
Test if the value contains any characters other than a whitespace
