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