fix KTxt2 import split by paragraphs
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
oldFileMTime
|
||||
(mTime oldConfigFile)
|
||||
userConfigMTime
|
||||
(let [foldersToCheck [(userConfigDir) builtinConfigDir ]]
|
||||
(let [foldersToCheck [(userConfigDir) builtinConfigDir]]
|
||||
(when commandsDir
|
||||
(foldersToCheck.push commandsDir))
|
||||
(apply max
|
||||
|
@@ -8,7 +8,7 @@
|
||||
outputType (if (outputType.startsWith ".") (outputType.substr 1) outputType)
|
||||
ktxt2Filename "${file}.${outputType}.ktxt2"
|
||||
&mut newContents ""
|
||||
:kiss.List<String> inputBlocks (.split (File.getContent file) splitBy)]
|
||||
:kiss.List<String> inputBlocks (.split (.replace (File.getContent file) "\r" "") splitBy)]
|
||||
(doFor block (inputBlocks.slice 0 -1)
|
||||
(+= newContents (_blockOf block splitBy)))
|
||||
(+= newContents (_blockOf (last inputBlocks) ""))
|
||||
|
Reference in New Issue
Block a user