I like captions to normally have a colon, but not when the caption is empty. This is something that the package caption does automatically, so
\documentclass{scrartcl}
\usepackage{caption}
\usepackage{hyperref}
\begin{document}
\begin{figure}
\caption{Test}
\caption{}
\end{figure}
\end{document}
yields
which is what I want. But I want to use KOMA captions without the caption package, and then I get "Figure 1: Test / Figure 2:" with the extra colon at the end. How can I patch it to make it as I want?
I need a solution that works together with hyperref. An answer to this earlier question where hyperref isn't involved doesn't work with it, so it may complicate things.


\usepackage{caption}line in there, which is what actually fixes it! – pst Feb 03 '19 at 12:11