@Kevin
merge multiple blank lines into one blank line success
Macro Macro4
At present, there is only one problem
Using the following code, empty lines are removed
:
______________________________________________________
ss.replacerx("^\040.+$|\040\;\;.+" "")
ss.replacerx("^\040.+$|\040\;\;.+|\011\040.+" "")
______________________________________________________
merge multiple blank lines into one blank line success
Macro Macro4
_s.getsel
_s.replacerx("(?:(?:(?!\n)\s)*\n){2,}" "[][]")
mes _s
out _s
#ret
,,ret DT_Ret(hDlg 1)
,,;ret DT_Ret(hDlg 1) ;;comment
,,
,,
ret
;messages2
sel wParam
,case IDOK
,
,
,case IDCANCEL
,
,
,
ret 1
At present, there is only one problem
Using the following code, empty lines are removed

______________________________________________________
ss.replacerx("^\040.+$|\040\;\;.+" "")
ss.replacerx("^\040.+$|\040\;\;.+|\011\040.+" "")
______________________________________________________
![[Image: 1.png]](https://i.ibb.co/swQkc4B/1.png)