let val = ''
for val in a:text
let a:text[i] = substitute(val,'\\n',"\n",'')
+ "let a:text[i] = substitute(a:text[i],'\n',"\r",'')
let i += 1
endfor
endfunc
endif
let comment = split(comment,'\s\+')
- " call CommentSubSpecialChar(comment)
+ " NB 09.06.25: For css
+ " let comment = substitute(comment,'\n','\r','g')
+ "call CommentSubSpecialChar(comment)
let curr_line = getline('.')
"
if ( len(comment)>1 )
let new_line = substitute(new_line,'\s*'.comment[1].'\s*$','','')
endif
+ "let new_line = substitute(new_line,'\r','\n','g')
if new_line == curr_line
"
if ( len(comment)>1 )
let new_line = substitute(new_line,'\s*$',' '.comment[1],'')
endif
- " let new_line = substitute(new_line,'\\n',"\n",'')
+ "let new_line = substitute(new_line,'\n',"\n",'g')
endif
call setline('.',new_line)