Fix for bug [ 1335450 ] Replace all << by << and >> by >>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2616,11 +2616,21 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
|
|||||||
|
|
||||||
case ltCINSERT:
|
case ltCINSERT:
|
||||||
if (start)
|
if (start)
|
||||||
TexOutput(_T("<<"), true);
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<<"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<<"), true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltCEXTRACT:
|
case ltCEXTRACT:
|
||||||
if (start)
|
if (start)
|
||||||
TexOutput(_T(">>"), true);
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T(">>"));
|
||||||
|
else
|
||||||
|
TexOutput(_T(">>"), true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltDESTRUCT:
|
case ltDESTRUCT:
|
||||||
if (start)
|
if (start)
|
||||||
@@ -2855,10 +2865,22 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
|
|||||||
// Binary operation symbols
|
// Binary operation symbols
|
||||||
case ltLE:
|
case ltLE:
|
||||||
case ltLEQ:
|
case ltLEQ:
|
||||||
if (start) TexOutput(_T("<="));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<="));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<="));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltLL:
|
case ltLL:
|
||||||
if (start) TexOutput(_T("<<"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<<"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<<"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltSUBSET:
|
case ltSUBSET:
|
||||||
if (start) TexOutput(_T("SUBSET"));
|
if (start) TexOutput(_T("SUBSET"));
|
||||||
@@ -2877,10 +2899,24 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
|
|||||||
break;
|
break;
|
||||||
case ltGE:
|
case ltGE:
|
||||||
case ltGEQ:
|
case ltGEQ:
|
||||||
if (start) TexOutput(_T(">="));
|
{
|
||||||
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T(">="));
|
||||||
|
else
|
||||||
|
TexOutput(_T(">="));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case ltGG:
|
case ltGG:
|
||||||
if (start) TexOutput(_T(">>"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T(">>"));
|
||||||
|
else
|
||||||
|
TexOutput(_T(">>"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltSUPSET:
|
case ltSUPSET:
|
||||||
if (start) TexOutput(_T("SUPSET"));
|
if (start) TexOutput(_T("SUPSET"));
|
||||||
@@ -2962,22 +2998,58 @@ void DefaultOnMacro(int macroId, int no_args, bool start)
|
|||||||
|
|
||||||
// Arrows
|
// Arrows
|
||||||
case ltLEFTARROW:
|
case ltLEFTARROW:
|
||||||
if (start) TexOutput(_T("<--"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<--"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<--"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltLEFTARROW2:
|
case ltLEFTARROW2:
|
||||||
if (start) TexOutput(_T("<=="));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<=="));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<=="));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltRIGHTARROW:
|
case ltRIGHTARROW:
|
||||||
if (start) TexOutput(_T("-->"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("-->"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("-->"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltRIGHTARROW2:
|
case ltRIGHTARROW2:
|
||||||
if (start) TexOutput(_T("==>"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("==>"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("==>"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltLEFTRIGHTARROW:
|
case ltLEFTRIGHTARROW:
|
||||||
if (start) TexOutput(_T("<-->"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<-->"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<-->"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltLEFTRIGHTARROW2:
|
case ltLEFTRIGHTARROW2:
|
||||||
if (start) TexOutput(_T("<==>"));
|
if (start)
|
||||||
|
{
|
||||||
|
if (convertMode == TEX_HTML)
|
||||||
|
TexOutput(_T("<==>"));
|
||||||
|
else
|
||||||
|
TexOutput(_T("<==>"));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ltUPARROW:
|
case ltUPARROW:
|
||||||
if (start) TexOutput(_T("UPARROW"));
|
if (start) TexOutput(_T("UPARROW"));
|
||||||
|
Reference in New Issue
Block a user