Skip to content

Commit f022de7

Browse files
committed
Fixed to align the indentation of the line specified in header options.
1 parent e1de98c commit f022de7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
### Bug fix
4+
5+
* Fixed to align the indentation of the line specified in header options.
6+
37
## v0.1.0 (2202-12-08)
48

59
### Features

src/DiagramElement/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getPackage(): Package {
2121

2222
public function dump(): array {
2323
$lines = ['@startuml class-diagram'];
24-
$lines = array_merge($lines, $this->options->headers());
24+
$lines = array_merge($lines, array_map(function($x){ return ' ' . $x;}, $this->options->headers()));
2525
$lines = array_merge($lines, $this->package->dump());
2626
$lines = array_merge($lines, $this->getRelations());
2727
$lines[] = '@enduml';

0 commit comments

Comments
 (0)