def ensure_description_newlines(buffer)
      return if description.empty?

      if description[-1, 1] != '\n'
        buffer << '\n\n'
      elsif description.length > 1 && description[-2, 1] != '\n'
        buffer << '\n'
      end
    end
def ensure_description_newlines(buffer)
      return if description.empty?

      if description[-1, 1] != '\n'
        buffer << '\n\n'
      elsif description.length > 1 && description[-2, 1] != '\n'
        buffer << '\n'
      end
    end
Ensure the input string buffer ends with two newlines.

 @param buffer [String] a buffer to check
   If the buffer does not ends with two newlines the newlines are added.