fix: newline
This commit is contained in:
@@ -75,6 +75,7 @@ export function risuFormater(dat:string){
|
|||||||
|
|
||||||
|
|
||||||
if(dat[i] === '\n' && lines[lines.length-1][0] === ''){
|
if(dat[i] === '\n' && lines[lines.length-1][0] === ''){
|
||||||
|
lines.push(['newline','\n'])
|
||||||
lines.push(['',''])
|
lines.push(['',''])
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@@ -180,7 +181,7 @@ export function risuFormater(dat:string){
|
|||||||
|
|
||||||
console.log(lineResult)
|
console.log(lineResult)
|
||||||
|
|
||||||
result += lineResult + '\n'
|
result += lineResult
|
||||||
}
|
}
|
||||||
|
|
||||||
return result.trim()
|
return result.trim()
|
||||||
|
|||||||
Reference in New Issue
Block a user