mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 01:54:29 +02:00
global-functions: $Unix2Dos: use :tocrlf
This commit is contained in:
parent
8f75d542f3
commit
2fd0d27447
1 changed files with 1 additions and 6 deletions
|
@ -1433,12 +1433,7 @@
|
|||
|
||||
# convert line endings, UNIX -> DOS
|
||||
:set Unix2Dos do={
|
||||
:local Input [ :tostr $1 ];
|
||||
|
||||
:global CharacterReplace;
|
||||
|
||||
:return [ $CharacterReplace [ $CharacterReplace $Input \
|
||||
("\n") ("\r\n") ] ("\r\r\n") ("\r\n") ];
|
||||
:return [ :tocrlf [ :tostr $1 ] ];
|
||||
}
|
||||
|
||||
# url encoding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue