fixed party not showing in section of speech

This commit is contained in:
Jonas Werner 2025-03-23 14:28:26 +01:00
parent e43dea4e36
commit 9332ceab03

View file

@ -85,15 +85,16 @@ public class Speech_MongoDB_Impl extends Speech_File_Impl implements Speech {
public String toTeX() {
StringBuilder tex = new StringBuilder();
String party = (this.getFraction() != null ? " (" + this.getFraction() + ")" : "");
String speechTitle = "Rede " +
this.getSpeechKey() +
"/" +
getAgendaTitle(this.getSessionId(), this.getAgendaItemId()) +
" von " +
this.getSpeakerName() +
" (" +
this.getFraction() +
") vom " +
party +
" vom " +
getSessionDateTime(this.getSessionId());
tex.append("\\section*{").append(speechTitle).append("}\n");