mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix html escape char
This commit is contained in:
parent
a73573120a
commit
9a408df26e
1 changed files with 4 additions and 0 deletions
|
|
@ -1799,9 +1799,13 @@ wxString ctlSQLBox::TextToHtml(int start, int end,bool isAddNewLine) {
|
|||
int s = 0;
|
||||
//wxUniChar c = selText[k].GetValue();
|
||||
if (c == '\r') { startp = startp + l; k++; continue; };
|
||||
|
||||
if (c == '\n') { str += newline; startp = startp + l; k++; continue; };
|
||||
if (c == 9) s = 5;
|
||||
if (c == 32) s = 1;
|
||||
if (c == '<') { str+="<"; startp = startp + l; k++; continue; };
|
||||
if (c == '>') { str+=">"; startp = startp + l; k++; continue; };
|
||||
if (c == '&') { str+="&"; startp = startp + l; k++; continue; };
|
||||
if (s > 0) for (int tt = 0; tt < s; tt++) str += wxT(" ");
|
||||
else str += c;
|
||||
startp = startp + l; k++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue