@@ -129,7 +129,7 @@ function _model_macro(mod, name, expr, isconnector)
129129
130130    push! (exprs. args, :(alg_eqs =  $ (alg_equations)(var"#___sys___" )))
131131    d_evt_exs =  map (d_evts) do  evt
132-         length (evt. args) ==  2  ?   
132+         length (evt. args) ==  2  ? 
133133        :($ SymbolicDiscreteCallback ($ (evt. args[1 ]); iv =  $ iv, alg_eqs, $ (evt. args[2 ]. .. ))) : 
134134        :($ SymbolicDiscreteCallback ($ (evt. args[1 ]); iv =  $ iv, alg_eqs))
135135    end 
@@ -138,8 +138,9 @@ function _model_macro(mod, name, expr, isconnector)
138138        :($ Setfield. @set! (var"#___sys___" . discrete_events= [$ (d_evt_exs... )])))
139139
140140    c_evt_exs =  map (c_evts) do  evt
141-         length (evt. args) ==  2  ?  
142-         :($ SymbolicContinuousCallback ($ (evt. args[1 ]); iv =  $ iv, alg_eqs, $ (evt. args[2 ]. .. ))) : 
141+         length (evt. args) ==  2  ? 
142+         :($ SymbolicContinuousCallback (
143+             $ (evt. args[1 ]); iv =  $ iv, alg_eqs, $ (evt. args[2 ]. .. ))) : 
143144        :($ SymbolicContinuousCallback ($ (evt. args[1 ]); iv =  $ iv, alg_eqs))
144145    end 
145146    ! isempty (c_evts) &&  push! (exprs. args,
@@ -1133,9 +1134,9 @@ function parse_continuous_events!(c_evts, dict, body)
11331134    dict[:continuous_events ] =  []
11341135    Base. remove_linenums! (body)
11351136    for  line in  body. args
1136-         if  length (line. args) ==  3  &&  line. args[1 ] ==  :(=> )  
1137+         if  length (line. args) ==  3  &&  line. args[1 ] ==  :(=> )
11371138            push! (c_evts, :(($ line,)))
1138-         elseif  length (line. args) ==  2   
1139+         elseif  length (line. args) ==  2 
11391140            event =  line. args[1 ]
11401141            kwargs =  parse_event_kwargs (line. args[2 ])
11411142            push! (c_evts, :(($ event, $ kwargs)))
@@ -1150,9 +1151,9 @@ function parse_discrete_events!(d_evts, dict, body)
11501151    dict[:discrete_events ] =  []
11511152    Base. remove_linenums! (body)
11521153    for  line in  body. args
1153-         if  length (line. args) ==  3  &&  line. args[1 ] ==  :(=> )  
1154+         if  length (line. args) ==  3  &&  line. args[1 ] ==  :(=> )
11541155            push! (d_evts, :(($ line,)))
1155-         elseif  length (line. args) ==  2   
1156+         elseif  length (line. args) ==  2 
11561157            event =  line. args[1 ]
11571158            kwargs =  parse_event_kwargs (line. args[2 ])
11581159            push! (d_evts, :(($ event, $ kwargs)))
0 commit comments