<div dir="ltr">This response goes back to this post: <a href="http://tug.org/mailman/htdig/xetex/2010-February/015985.html">http://tug.org/mailman/htdig/xetex/2010-February/015985.html</a><br><br>The solution I provided, only works for normal text and does not work for list (i.e. itemize). The following code seems to fix both:<br>
<br>
<meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p>
<p style="margin: 0px; text-indent: 0px;">\def\@iiiminipage#1#2[#3]#4{%</p>
<p style="margin: 0px; text-indent: 0px;">  \leavevmode</p>
<p style="margin: 0px; text-indent: 0px;">  \@pboxswfalse</p>
<p style="margin: 0px; text-indent: 0px;">  \setlength\@tempdima{#4}%</p>
<p style="margin: 0px; text-indent: 0px;">  \def\@mpargs{{#1}{#2}[#3]{#4}}%</p>
<p style="margin: 0px; text-indent: 0px;">  \setbox\@tempboxa\hbox\bgroup\if@RTL\beginL\fi\vbox\bgroup</p>
<p style="margin: 0px; text-indent: 0px;">    \color@begingroup</p>
<p style="margin: 0px; text-indent: 0px;">      \hsize\@tempdima</p>
<p style="margin: 0px; text-indent: 0px;">      \textwidth\hsize \columnwidth\hsize</p>
<p style="margin: 0px; text-indent: 0px;">      \@parboxrestore</p>
<p style="margin: 0px; text-indent: 0px;">      \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@</p>
<p style="margin: 0px; text-indent: 0px;">      \let\@footnotetext\@mpfootnotetext</p>
<p style="margin: 0px; text-indent: 0px;">      \let\@listdepth\@mplistdepth \@mplistdepth\z@</p>
<p style="margin: 0px; text-indent: 0px;">      \@minipagerestore</p>
<p style="margin: 0px; text-indent: 0px;">      \@setminipage}</p>
<p style="margin: 0px; text-indent: 0px;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p>
<p style="margin: 0px; text-indent: 0px;">\def\endminipage{%</p>
<p style="margin: 0px; text-indent: 0px;">    \par</p>
<p style="margin: 0px; text-indent: 0px;">    \unskip</p>
<p style="margin: 0px; text-indent: 0px;">    \ifvoid\@mpfootins\else</p>
<p style="margin: 0px; text-indent: 0px;">      \vskip\skip\@mpfootins</p>
<p style="margin: 0px; text-indent: 0px;">      \normalcolor</p>
<p style="margin: 0px; text-indent: 0px;">      \footnoterule</p>
<p style="margin: 0px; text-indent: 0px;">      \unvbox\@mpfootins</p>
<p style="margin: 0px; text-indent: 0px;">    \fi</p>
<p style="margin: 0px; text-indent: 0px;">    \@minipagefalse   %% added 24 May 89</p>
<p style="margin: 0px; text-indent: 0px;">  \color@endgroup</p>
<p style="margin: 0px; text-indent: 0px;"> \egroup</p>
<p style="margin: 0px; text-indent: 0px;"> \if@RTL\endL\fi</p>
<p style="margin: 0px; text-indent: 0px;">  \egroup</p>
<p style="margin: 0px; text-indent: 0px;">  \expandafter\@iiiparbox\@mpargs{\unhbox\@tempbox</p><p style="margin: 0px; text-indent: 0px;">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</p><p style="margin: 0px; text-indent: 0px;">
<br></p><p style="margin: 0px; text-indent: 0px;">Only one issue remains and that is if you have</p><p style="margin: 0px; text-indent: 0px;"><br></p><p style="margin: 0px; text-indent: 0px;">\documentclass{article}</p><p style="margin: 0px; text-indent: 0px;">
\usepackage{bidi}</p><p style="margin: 0px; text-indent: 0px;"><meta name="qrichtext" content="1"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
p, li { white-space: pre-wrap; }
</style>\begin{document}
\setRTL
</p><p style="margin: 0px; text-indent: 0px;">\fbox{\begin{minipage}[b]{0.6\textwidth}</p>
<p style="margin: 0px; text-indent: 0px;">\begin{itemize}</p><p style="margin: 0px; text-indent: 0px;">\item This is a test.</p>
<p style="margin: 0px; text-indent: 0px;">\end{itemize}</p>
<p style="margin: 0px; text-indent: 0px;">\end{minipage}}</p>
<p style="margin: 0px; text-indent: 0px;">\end{document}</p><p></p><br clear="all">The indentation of list does not work here. The simplest solution is to have \leavevmode after \begin{minipage} but that produces a blank like which you could fix that by \vspace{-\baselineskip}. <br>
<br>The actual question is, what is the best place for that \leavevmode?<br>-- <br>Best wishes,<br>Vafa Khalighi<br>
</div>