Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnNotePanel.cpp

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

revision 1.2 by maloninc, Wed Oct 5 04:55:48 2005 UTC revision 1.3 by maloninc, Fri Oct 7 10:19:46 2005 UTC
# Line 157  void mnNotePanel::makeHtml(WikiData* wik Line 157  void mnNotePanel::makeHtml(WikiData* wik
157          exp8.Replace(&htmlText, wxT("<a href=mndoc:\\1>\\1</a>"));          exp8.Replace(&htmlText, wxT("<a href=mndoc:\\1>\\1</a>"));
158    
159          /* table */          /* table */
160          wxRegEx exp10(wxT(",([^,\n]+)"), wxRE_DEFAULT);          wxRegEx exp10(wxT("^,([^,]+)"), wxRE_NEWLINE|wxRE_DEFAULT);
161          exp10.Replace(&htmlText, wxT("<td>\\1</td>"));          exp10.Replace(&htmlText, wxT("<td>\\1</td>"));
162            for(int i = 0; i < 10; i++){ // It's not good.  :P
163                    wxRegEx exp16(wxT("</td>,([^,\n]+)"), wxRE_DEFAULT);
164                    exp16.Replace(&htmlText, wxT("</td><td>\\1</td>"));
165            }
166          wxRegEx exp11(wxT("^<td>"), wxRE_NEWLINE|wxRE_DEFAULT);          wxRegEx exp11(wxT("^<td>"), wxRE_NEWLINE|wxRE_DEFAULT);
167          exp11.Replace(&htmlText, wxT("<tr><td>"));          exp11.Replace(&htmlText, wxT("<tr><td>"));
168          wxRegEx exp12(wxT("</td>$"), wxRE_NEWLINE|wxRE_DEFAULT);          wxRegEx exp12(wxT("</td>$"), wxRE_NEWLINE|wxRE_DEFAULT);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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