title: PlantUML: How to Insert a Newline or <br> in Between Legend & Footer and Caption Spacing?
body: <p>Have created a sequence diagram using PlantUML generating containing a legend and footer.</p>
  <p>The footer contains my company's name along with copyright date.</p>
  <p>The legend is very close to the footer and I need to insert a new line (or a <code>&lt;br&gt;</code> or a <code>&lt;p&gt;</code>) in between the legend and footer. Also, my caption seems to have a large space in between the caption and legend.</p>
  <p>My puml DSL file:</p>
  <hr />
  <pre><code>@startuml
  skinparam Shadowing false
  title __Dating API Sequence Diagram__\n
  caption \nVersion 1.0 - 6/26/2020 (Draft)\n
  autonumber
  activate DatingApp
  DatingApp -&gt; DatingRestController: hitExternalApi()
  activate DatingRestController
  DatingRestController -&gt; DatingService: processService()
  activate DatingService
  DatingService -&gt; DatingService: findProfile()
  activate DatingService #90EE90
  DatingService -&gt; DatingService: doSomething()
  DatingService -&gt; DatingService: doSomethingElse()
  deactivate DatingService
  DatingService -&gt; DatingRestController: return retValue
  DatingRestController -&gt; DatingApp: jsonPayload
  deactivate DatingRestController
  deactivate DatingApp
  legend bottom right
  Legend
  |=Color |= Name |= Type |= Lifeline |
  |&lt;back:#FFFFFF&gt;           &lt;/back&gt;| DatingApp.hitExternalApi() | method | default |
  |&lt;back:#FFFFFF&gt;           &lt;/back&gt;| DatingRestController.processService() | method | default |
  |&lt;back:#FFFFFF&gt;           &lt;/back&gt;| DatingService.findProfile | method | default |
  |&lt;back:#90EE90&gt;           &lt;/back&gt;| DatingService.doSomething() | method | nested |
  |&lt;back:#90EE90&gt;           &lt;/back&gt;| DatingService.doSomethingElse() | method | nested |
  endlegend
  center footer MyCompany.com (c) 2020
  @enduml
  </code></pre>
  <hr />
  <p>Here's the generated diagram from IntelliJ IDEA:</p>
  <p><a href="https://i.stack.imgur.com/JC7rs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JC7rs.png" alt="Generated Seq" /></a></p>
  <hr />
  <p>Question(s):</p>
  <ol>
  <li><p>How to reduce the excessive space with the caption and legend (tried putting an <code>&lt;hr&gt;</code> but got an error inside IntelliJ IDEA as a workaround)?</p>
  </li>
  <li><p>How to create horizontal lines (using <code>&lt;hr&gt;</code>) inside my sequence diagram to denote different sections?</p>
  </li>
  <li><p>How to place a new line break or <code>&lt;p&gt;</code> or <code>\n</code> in between the legend and footer?</p>
  </li>
  </ol>