Fix for bug [ 1335450 ] Replace all << by &lt;&lt; and >> by &gt;&gt;

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-01-21 17:31:38 +00:00
parent 64c288fa47
commit ca59e724aa

View File

@ -2616,11 +2616,21 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
case ltCINSERT:
if (start)
TexOutput(_T("<<"), true);
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;&lt;"));
else
TexOutput(_T("<<"), true);
}
break;
case ltCEXTRACT:
if (start)
TexOutput(_T(">>"), true);
{
if (convertMode == TEX_HTML)
TexOutput(_T("&gt;&gt;"));
else
TexOutput(_T(">>"), true);
}
break;
case ltDESTRUCT:
if (start)
@ -2855,10 +2865,22 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
// Binary operation symbols
case ltLE:
case ltLEQ:
if (start) TexOutput(_T("<="));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;="));
else
TexOutput(_T("<="));
}
break;
case ltLL:
if (start) TexOutput(_T("<<"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;&lt;"));
else
TexOutput(_T("<<"));
}
break;
case ltSUBSET:
if (start) TexOutput(_T("SUBSET"));
@ -2877,10 +2899,24 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
break;
case ltGE:
case ltGEQ:
if (start) TexOutput(_T(">="));
{
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&gt;="));
else
TexOutput(_T(">="));
}
break;
}
case ltGG:
if (start) TexOutput(_T(">>"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&gt;&gt;"));
else
TexOutput(_T(">>"));
}
break;
case ltSUPSET:
if (start) TexOutput(_T("SUPSET"));
@ -2962,22 +2998,58 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
// Arrows
case ltLEFTARROW:
if (start) TexOutput(_T("<--"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;--"));
else
TexOutput(_T("<--"));
}
break;
case ltLEFTARROW2:
if (start) TexOutput(_T("<=="));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;=="));
else
TexOutput(_T("<=="));
}
break;
case ltRIGHTARROW:
if (start) TexOutput(_T("-->"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("--&gt;"));
else
TexOutput(_T("-->"));
}
break;
case ltRIGHTARROW2:
if (start) TexOutput(_T("==>"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("==&gt;"));
else
TexOutput(_T("==>"));
}
break;
case ltLEFTRIGHTARROW:
if (start) TexOutput(_T("<-->"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;--&gt;"));
else
TexOutput(_T("<-->"));
}
break;
case ltLEFTRIGHTARROW2:
if (start) TexOutput(_T("<==>"));
if (start)
{
if (convertMode == TEX_HTML)
TexOutput(_T("&lt;==&gt;"));
else
TexOutput(_T("<==>"));
}
break;
case ltUPARROW:
if (start) TexOutput(_T("UPARROW"));