Indentation
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2357 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8233568935
commit
57427507c1
1 changed files with 13 additions and 13 deletions
|
@ -39,24 +39,24 @@
|
|||
\c ; modifies no other variables.
|
||||
\c
|
||||
\c Function TrimNewlines
|
||||
\c Exch $R0
|
||||
\c Push $R1
|
||||
\c Push $R2
|
||||
\c StrCpy $R1 0
|
||||
\c Exch $R0
|
||||
\c Push $R1
|
||||
\c Push $R2
|
||||
\c StrCpy $R1 0
|
||||
\c
|
||||
\c loop:
|
||||
\c IntOp $R1 $R1 - 1
|
||||
\c StrCpy $R2 $R0 1 $R1
|
||||
\c StrCmp $R2 "$\r" loop
|
||||
\c StrCmp $R2 "$\n" loop
|
||||
\c IntOp $R1 $R1 + 1
|
||||
\c IntCmp $R1 0 no_trim_needed
|
||||
\c IntOp $R1 $R1 - 1
|
||||
\c StrCpy $R2 $R0 1 $R1
|
||||
\c StrCmp $R2 "$\r" loop
|
||||
\c StrCmp $R2 "$\n" loop
|
||||
\c IntOp $R1 $R1 + 1
|
||||
\c IntCmp $R1 0 no_trim_needed
|
||||
\c StrCpy $R0 $R0 $R1
|
||||
\c
|
||||
\c no_trim_needed:
|
||||
\c Pop $R2
|
||||
\c Pop $R1
|
||||
\c Exch $R0
|
||||
\c Pop $R2
|
||||
\c Pop $R1
|
||||
\c Exch $R0
|
||||
\c FunctionEnd
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue