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.14 by maloninc, Thu Oct 19 08:55:19 2006 UTC revision 1.15 by maloninc, Fri Oct 20 02:00:03 2006 UTC
# Line 171  void mnNotePanel::makeHtml(WikiData* wik Line 171  void mnNotePanel::makeHtml(WikiData* wik
171                    
172          /* -XXXX */          /* -XXXX */
173          wxRegEx exp16(wxT("^-(.*)"), wxRE_NEWLINE|wxRE_DEFAULT);          wxRegEx exp16(wxT("^-(.*)"), wxRE_NEWLINE|wxRE_DEFAULT);
174    #ifdef __WXMAC__
175          exp16.Replace(&htmlText, wxT("<li>\\1</li>"));          exp16.Replace(&htmlText, wxT("<li>\\1</li>"));
176    #else
177            exp16.Replace(&htmlText, wxT("<ul><li>\\1</li></ul>"));
178    #endif
179                    
180    
181          /* {{ }} */          /* {{ }} */
# Line 181  void mnNotePanel::makeHtml(WikiData* wik Line 185  void mnNotePanel::makeHtml(WikiData* wik
185          /* table */          /* table */
186          wxRegEx exp10(wxT("^,([^,]+)"), wxRE_NEWLINE|wxRE_DEFAULT);          wxRegEx exp10(wxT("^,([^,]+)"), wxRE_NEWLINE|wxRE_DEFAULT);
187          exp10.Replace(&htmlText, wxT("<td> \\1 </td>"));          exp10.Replace(&htmlText, wxT("<td> \\1 </td>"));
188          for(int i = 0; i < 10; i++){ // It's not good.  :P          for(int i = 0; i < 64; i++){ // It's not good.  :P
189                  wxRegEx exp16(wxT("</td>,([^,\n]+)"), wxRE_DEFAULT);                  wxRegEx exp16(wxT("</td>,([^,\n]+)"), wxRE_DEFAULT);
190                  exp16.Replace(&htmlText, wxT("</td><td>\\1</td>"));                  exp16.Replace(&htmlText, wxT("</td><td>\\1</td>"));
191          }          }

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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