From f7d38658687017d373c707213b59533b5c2e97e0 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Tue, 21 Jun 2022 13:01:00 +0200 Subject: [PATCH] chore: commit save point --- application/source/files.go | 3 ++- development/examples/example1/req1/1/test1.md | 12 +----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/application/source/files.go b/application/source/files.go index fd82bcd..5e8d6dc 100644 --- a/application/source/files.go +++ b/application/source/files.go @@ -6,6 +6,7 @@ import ( "os" "path" "path/filepath" + "strings" "gopkg.in/yaml.v3" ) @@ -81,7 +82,7 @@ func rewriteFiles(pageData map[string]*requirement) error { encoder.Close() text := "---\n" + buf.String() + "\n...\n" - text += pd.OriginText + text += strings.Trim(pd.OriginText, "\n") info, err := os.Stat(filename) if err != nil { diff --git a/development/examples/example1/req1/1/test1.md b/development/examples/example1/req1/1/test1.md index b998e62..0353010 100644 --- a/development/examples/example1/req1/1/test1.md +++ b/development/examples/example1/req1/1/test1.md @@ -102,15 +102,6 @@ Privacy: TOM: null ... - - - - - - - - - ### {{ .Title }} - {{ .ID }} #### Subheading @@ -165,5 +156,4 @@ test test -@todo das ist ein todo - +@todo das ist ein todo \ No newline at end of file -- GitLab