mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 18:14:27 +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
|
# convert line endings, UNIX -> DOS
|
||||||
:set Unix2Dos do={
|
:set Unix2Dos do={
|
||||||
:local Input [ :tostr $1 ];
|
:return [ :tocrlf [ :tostr $1 ] ];
|
||||||
|
|
||||||
:global CharacterReplace;
|
|
||||||
|
|
||||||
:return [ $CharacterReplace [ $CharacterReplace $Input \
|
|
||||||
("\n") ("\r\n") ] ("\r\r\n") ("\r\n") ];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# url encoding
|
# url encoding
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue