I'm new to TeX and I'm a bit lost. Could someone tell me how this should be written (marked 'PROBLEM HERE' in the code)
Situation: When argument #2 is space (empty paragraph), I want to use next paragraph
\def\adjustParagraph#1\par{...some code here (which works ok)...}
\def\headline#1#2\par % takes headline (#1) and the paragraph which follows (#2)
{\myFont#1\par % headline
\if #2 {\adjustParagraph} % if argument #2 is a space (empty paragraph) <= PROBLEM HERE
\else{\adjustParagraph#2\par} % argument #2 is text
\fi}
\headline{This is headline}
Lorem ipsum dolor sit amet consectetuer ...
\headline{Another headline}
This time, argument 2 is that blank space above this line...