Some content list edit styling

This commit is contained in:
Simon Martens
2026-01-17 16:02:55 +01:00
parent 0c63846024
commit d3ffa5f90d
7 changed files with 82 additions and 35 deletions

View File

@@ -56,7 +56,7 @@ func (a *Agent) SetURI(uri string) {
}
func (a *Agent) BiographicalData() string {
return a.GetString(AGENTS_BIOGRAPHICAL_DATA_FIELD)
return strings.TrimSpace(a.GetString(AGENTS_BIOGRAPHICAL_DATA_FIELD))
}
func (a *Agent) SetBiographicalData(biographicalData string) {

View File

@@ -142,7 +142,15 @@ func (c *Content) SetMusenalmType(musenalmType []string) {
}
func (c *Content) MusenalmPagination() string {
return c.GetString(MUSENALM_PAGINATION_FIELD)
value := c.GetString(MUSENALM_PAGINATION_FIELD)
if value != "" {
return value
}
values := c.GetStringSlice(MUSENALM_PAGINATION_FIELD)
if len(values) > 0 {
return values[0]
}
return ""
}
func (c *Content) SetMusenalmPagination(musenalmPagination string) {