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

Indentation errors #19

Open
SHU-red opened this issue Dec 22, 2021 · 0 comments
Open

Indentation errors #19

SHU-red opened this issue Dec 22, 2021 · 0 comments

Comments

@SHU-red
Copy link

SHU-red commented Dec 22, 2021

I have some weird indentations, no matter if talking about rules, items or anything else ...

config-file is untouched from openhabian or alternatively using this configuration when accessing through my local machine via ssh im using this config:

set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set listchars=tab:\¦\ ,extends:>,precedes:<,space:·
set list

Examples

after auto-format code by typing in
gg=G

rules-file

rule "LoggingTaskStartup"

when

System started

then

// Set Values
// Because rdd4j-persistence does not store strings
lTim_Str.sendCommand("")
lTop_Str.sendCommand("")
lTxt_Str.sendCommand("")
lCol_Str.sendCommand("")
lAct_Str.sendCommand("")
lActCom_Str.sendCommand("")
lActItm_Str.sendCommand("")
lActTxt_Str.sendCommand("")
    lIco_Str.sendCommand("")
lDel_Num.sendCommand(-1)

    end

items-file


// Socket
Switch                     dSckLvngRoomTv_Swt                "Fernseher"     (dDevLeavFct_GrpSwt)         {ga="Switch"}
    Number                     dSckLvngRoomTv_PowConsCurr_Num
Number                     dSckLvngRoomTv_PowConsYstd_Num                    (cHou_PowConsYstd_GrpNum)
    Switch                     dSckBedRoomTv_Swt                 "Fernseher"     (dDevLeavFct_GrpSwt)         {ga="Switch"}
    Number                     dSckBedRoomTv_PowConsCurr_Num
Number                     dSckBedRoomTv_PowConsYstd_Num                     (cHou_PowConsYstd_GrpNum)
    Switch                     dSckOffcPeri_Swt                  "Bildschirm"    (dDevLeavFct_GrpSwt)         {ga="Switch"}
    Number                     dSckOffcPeri_PowConsCurr_Num
Number                     dSckOffcPeri_PowConsYstd_Num                      (cHou_PowConsYstd_GrpNum)
    Switch                     dSckOffcPc_Swt
    Number                     dSckOffcPc_PowConsCurr_Num
Number                     dSckOffcPc_PowConsYstd_Num                        (cHou_PowConsYstd_GrpNum)
    // GoogleHome
    Group                      dGoo_Stop_GrpSwt
    Group                      dGoo_Vol_GrpDim
    Switch                     dGoo_StopMan_Swt

Am i doing something wrong or did i miss to provide information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant