engineeringresumes: update Header.j2.tex to make connection seperator disappear at the line breaks

This commit is contained in:
Sina Atalay 2024-04-15 01:01:34 +03:00
parent 94f433b0d2
commit b68f4b863b
1 changed files with 15 additions and 8 deletions

View File

@ -1,8 +1,9 @@
\makeatletter
\newcommand{\test}{%
\@ifnextchar\par{A}{B}%
\newcommand{\AND}{\unskip
\cleaders\copy\ANDbox\hskip\wd\ANDbox
\ignorespaces
}
\makeatother
\newsavebox\ANDbox
\sbox\ANDbox{$|$}
((* if design.show_last_updated_date *))
\placelastupdatedtext
@ -15,12 +16,18 @@
\normalsize
((* for connection in cv.connections *))
\mbox{\href{<<connection["url"]>>}{<<connection["clean_url"]>>}}
\hspace*{<<design.margins.header.horizontal_between_connections|divide_length_by(2)>>}
\mbox{
((* if connection["url"] *))
\href{<<connection["url"]>>}{<<connection["clean_url"]>>}
((* else *))
<<connection["placeholder"]>>
((* endif *))
}
\kern <<design.margins.header.horizontal_between_connections|divide_length_by(2)>>
((* if not loop.last *))
$|$
\AND
((* endif *))
\hspace*{<<design.margins.header.horizontal_between_connections|divide_length_by(2)>>}
\kern <<design.margins.header.horizontal_between_connections|divide_length_by(2)>>
((* endfor *))
\end{header}