# multline and mdframed bug [closed]

I do not think this bug has been reported anywhere. At least, I could not find such a report. Below is a piece of code to see the problem. The frame in the right margin is improperly calculated.

\documentclass[10pt,fleqn]{book}
\usepackage{xcolor}
\usepackage{amsmath,amsthm}
\usepackage[framemethod=tikz]{mdframed}
\newmdtheoremenv[backgroundcolor=red!10]{theorem}{Theorem}
\begin{document}
\begin{theorem}$$text$$\begin{multline}$$text$$\end{multline}$$text$$\end{theorem}
\begin{theorem}$$text$$$$text$$$$text$$\end{theorem}
\end{document}

-

## closed as not a real question by Martin Scharrer♦Dec 18 '11 at 17:18

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I think bugs are best reported directly to the author of the package. See What is the best way to announce a bug in TeX-related software? –  Alan Munn Dec 18 '11 at 17:02
Sorry, but direct bug reports don't belong here. Write a email to the author(s). You can also consider posting it to comp.text.tex in addition to that. –  Martin Scharrer Dec 18 '11 at 17:19