fix: formatting of plot-title in placeholder

This commit is contained in:
Pierre Maurice Schwang
2025-07-20 22:54:25 +02:00
parent f020a6c6da
commit b36dab6301

View File

@ -63,4 +63,18 @@ public class PlotTitle {
return subtitle;
}
/**
* Provides a string representation of this plot title value (used in placeholders).
*
* @return the plot title representation in the format {@code "<title>" "<subtitle>"}
* @since TODO
*/
@Override
public String toString() {
return "\"%s\" \"%s\"".formatted(
this.title != null ? this.title : "",
this.subtitle != null ? this.subtitle : ""
);
}
}