diff --git a/application/source/files.go b/application/source/files.go index fd82bcdd475b8a3eaddc2ba8553dda0fbe32e6d7..5e8d6dc2bf06b336c0c74154fd9063e70221272b 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 b998e62807738312df7620ab27a58aefac7b58c2..035301070a01d62da51a4ae54fde9cbe00c55bc5 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