I've been playing with plantuml src in org files to generate drawings. It works great except for one thing, the indentation gets lost when I add nested objects.
Where should I look to extend the existing indentation code to handle nested cases?
Minor modes enabled in this buffer: Display-Line-Numbers Font-Lock
Org-Src Visual-Line
The major mode is plantuml mode defined in plantuml-mode.el:
Should I be looking at the plantuml major mode first, or the Org-src minor mode to noodle with the indents?
Any recommendations on how to approach indentation config?
Example showing how the indents get lost:
* Components Drawing
#+begin_src plantuml :file ComponentDiagram.svg
@startuml Component Diagram
' Components
component ExternaComponent1
package "Subsystem" {
component SubSysComp1 [
Subsystem Component 1
]
package "InternalNestedSubsystem" {
package "InternalDoubleNestedSubsystem" {
component SubSubComp1 [
Sub-Subsystem Component 1
]
component SubSubComp2 [
Sub-Subsystem Component 2
]
SubSubComp1 -() internalInterface1
internalInterface1 )- SubSubComp2
} ' This lines up correctly
} ' This should be one indent to the left
} ' This should be all the way to the left
@enduml ' This should be all the way to the left instead of indented.
#+end_src