Browse CVS Repository
Diff of /malonnote/mnFrame.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 151 |
const wxString* wikiText = ((WikiData*)(item))->getText(); |
const wxString* wikiText = ((WikiData*)(item))->getText(); |
| 152 |
wxString htmlText(*wikiText); |
wxString htmlText(*wikiText); |
| 153 |
|
|
| 154 |
|
/* escape < */ |
| 155 |
|
wxRegEx exp01(wxT("<"), wxRE_NEWLINE|wxRE_DEFAULT); |
| 156 |
|
exp01.Replace(&htmlText, wxT("\\< ")); |
| 157 |
|
|
| 158 |
|
/* escape > */ |
| 159 |
|
wxRegEx exp02(wxT(">"), wxRE_NEWLINE|wxRE_DEFAULT); |
| 160 |
|
exp02.Replace(&htmlText, wxT("\\> ")); |
| 161 |
|
|
| 162 |
/* [[ ]] */ |
/* [[ ]] */ |
| 163 |
wxRegEx exp1(wxT("\\[\\[([^\\}]+)\\]\\]")); |
wxRegEx exp1(wxT("\\[\\[([^\\}]+)\\]\\]")); |
| 164 |
exp1.Replace(&htmlText, wxT("<a href=mnlink:\\1>\\1</a>")); |
exp1.Replace(&htmlText, wxT("<a href=mnlink:\\1>\\1</a>")); |
|
|
Legend:
| Removed from v.1.11 |
|
| changed lines |
| |
Added in v.1.12 |
|
|
|