Hello I encountered a problem with breaking lines using package - \usepackage[hyphens]{url}.
It works perfectly in every situation expect this one where I use it in \textsuperscript{}. Unfortunately \textsuperscript{} was the only way found to include source with smaller font size below a picture.
Here is an example:
\documentclass{article}
\usepackage{graphicx}
\usepackage[hyphens]{url}
\begin{document}
\begin{figure}[!htb]
\begin{center}
\includegraphics[scale=0.64]{example-image-a}
\textsuperscript{Source and some text to reproduce the problem of non-hyphenation: \url{http://google.com/}}
\caption{Schema}
\label{abc}
\end{center}
\end{figure}
\end{document}

{\footnotesize Source: \url{http://google.com/}\par}. – Henri Menke Sep 11 '17 at 02:53sloppyparenvironment: https://tex.stackexchange.com/a/40521/35642 – thiagowfx Sep 11 '17 at 02:55\sloppy(or\sloppypar) won't help here, as the argument of a\textsuperscriptdirective doesn't get line-broken. – Mico Sep 11 '17 at 05:19