Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnFrame.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.11 by maloninc, Mon Aug 8 01:03:19 2005 UTC revision 1.12 by maloninc, Mon Aug 8 03:50:22 2005 UTC
# Line 151  void mnFrame::showSelectedItemText(wxTre Line 151  void mnFrame::showSelectedItemText(wxTre
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("\\&lt "));
157    
158            /* escape > */
159            wxRegEx exp02(wxT(">"), wxRE_NEWLINE|wxRE_DEFAULT);
160            exp02.Replace(&htmlText, wxT("\\&gt "));
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

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26