EurekaAdapter: remove carriage returns when writing pages; use minimum height for page list and file manager blocks

This commit is contained in:
Iris Lightshard 2022-06-16 22:56:59 -06:00
parent 4333461b75
commit 85fcd94bfa
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 6 additions and 2 deletions

View file

@ -100,7 +100,7 @@ func (self *EurekaAdapter) GetPage(filename string) Page {
return Page{
Title: title,
Content: content,
Content: strings.ReplaceAll(content, "\r", ""),
Edited: fileInfo.ModTime(),
}
}
@ -196,7 +196,7 @@ func (self *EurekaAdapter) CreatePage(slug, title, content string) error {
return err
}
defer f.Close()
f.WriteString(content)
f.WriteString(strings.ReplaceAll(content, "\r", ""))
return nil
}

View file

@ -194,6 +194,10 @@ h2 {
overflow-y: auto;
}
.page-list {
min-height: 5em;
}
span.adapter-error {
border-bottom: 2px solid crimson;
}