Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

${\n} in windows environment #1004

Open
Lacofab opened this issue Nov 29, 2023 · 0 comments
Open

${\n} in windows environment #1004

Lacofab opened this issue Nov 29, 2023 · 0 comments
Labels
bug Something isn't working robotframework-ls

Comments

@Lacofab
Copy link

Lacofab commented Nov 29, 2023

${\n} does not generate standard windows Carriage Return New Line \r\n, but \r\r\n and create empty lines

*** Settings ***
Documentation       Test Robot

Library             DateTime
Library             RPA.FileSystem

*** Variables ***
${outputDirectory}=  ${CURDIR}\\output\\

*** Keywords ***
Init Logs
    ${date}=    Get Current Date   result_format=%Y%m%d%H%M%S
    ${tmpFichierLog}=  Set Variable  ${date}.csv
    Set Global Variable   ${fichierLog}   ${outputDirectory}${/}${tmpFichierLog}
    Create File  ${fichierLog}   overwrite=true
    Append to File   ${fichierLog}   Col1;Col2;Col3;Col4;Col5${\n}


*** Keywords ***
Log Into Csv
    [Arguments]    ${Col1}  ${Col2}   ${Col3}   ${Col4}   ${col5}
    Append to File   ${fichierLog}   ${Col1};${Col2};${Col3};${Col4};${Col5}${\n}

*** Tasks ***
Minimal task
    Init Logs
    Log Into Csv   ${1}  ${2}  ${3}   ${4}   ${5}
@Lacofab Lacofab added bug Something isn't working robotframework-ls labels Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working robotframework-ls
Projects
None yet
Development

No branches or pull requests

1 participant