I have a very simple situation where wrapfig is not correctly choosing line break positions correctly. Here is the MWE:
\documentclass{beamer}
\usepackage{wrapfig}
\begin{document}
\begin{frame}
\begin{wrapfigure}{R}[5pt]{0.52\textwidth}
\framebox{THIS IS MY FIGURE}
\end{wrapfigure}
This is not wrapped properly, I think.
Here is some more text.
\end{frame}
\end{document}
Here is the output:
You can see that the first line of text is ended prematurely after the word "is". How can I make sure that text will wrap at the proper point on each line?
Perhaps related: I would expect the figure to be displayed at the same height as the first row of text, not the second row.

