fixing haml indentation and only showing notes if present