mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-06 11:49:14 +02:00
fix:#49 new line fix google calendar description
This commit is contained in:
@@ -111,10 +111,12 @@ func generateRoomLinksForGoogleCalendar(rooms string) string {
|
|||||||
var description strings.Builder
|
var description strings.Builder
|
||||||
roomList := functions.SeperateRoomString(rooms)
|
roomList := functions.SeperateRoomString(rooms)
|
||||||
|
|
||||||
description.WriteString("Orte: \n")
|
if !functions.OnlyWhitespace(rooms) {
|
||||||
|
description.WriteString("Orte: ")
|
||||||
for _, room := range roomList {
|
for _, room := range roomList {
|
||||||
roomLink := functions.MapRoom(room, true)
|
roomLink := functions.MapRoom(room, true)
|
||||||
description.WriteString("<a href=\"https://map.htwk-leipzig.de/room/" + roomLink + "\"> " + room + " </a>\n")
|
description.WriteString("<a href=\"https://map.htwk-leipzig.de/room/" + roomLink + "\"> " + room + " </a> ")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return description.String()
|
return description.String()
|
||||||
|
Reference in New Issue
Block a user