The commands
find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
and
find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
were used to do so.
K2A2 did not have my solution. i added it again.
mergeconflict with the pdf files for K2 and K3. just compiled them again
with the new tasks tex files.