diff --git a/archetype/eureka.go b/archetype/eureka.go index 583da5b..e6b1491 100644 --- a/archetype/eureka.go +++ b/archetype/eureka.go @@ -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 } diff --git a/static/style.css b/static/style.css index 059c864..4f60d95 100644 --- a/static/style.css +++ b/static/style.css @@ -194,6 +194,10 @@ h2 { overflow-y: auto; } +.page-list { + min-height: 5em; +} + span.adapter-error { border-bottom: 2px solid crimson; }