Thanks
Wolfgang, out of curiosity what does \GotoPar macro ? Is this similar to
\ignorespaces ?
The \GotoPar removes the following \par or empty line to ensure the
previous and the following text stay on the same line.
%%%% begin example
\define\RuleOne{\dontleavehmode\blackrule[width=4cm,color=orange]}
\define\RuleTwo{\dontleavehmode\blackrule[width=4cm,color=yellow]\GotoPar}