diff --git a/epwing.go b/epwing.go index 5005b01..0bf9d88 100644 --- a/epwing.go +++ b/epwing.go @@ -68,6 +68,8 @@ func epwingExportDb(inputPath, outputPath, language, title string, stride int, p str = strings.Replace(str, matches[0], replacement, -1) } + pattern := regexp.MustCompile("\n+") + str = pattern.ReplaceAllLiteralString(str, "\n") return str }