changeset 1143:fb3c5485a863

remove test code in plain.cc which slipped in accidentally
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 29 May 2009 18:16:26 +0200
parents fd2b0634abe9
children 506c8c23d638
files src/plain.cc
diffstat 1 files changed, 2 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/src/plain.cc	Fri May 29 07:51:19 2009 +0200
+++ b/src/plain.cc	Fri May 29 18:16:26 2009 +0200
@@ -135,7 +135,6 @@
    return false;
 }
 
-#define MAXWORD 500
 /*
  * Here we parse plain text and put it into the page structure.
  * (This function is called by Plain_callback whenever there's new data)
@@ -162,15 +161,7 @@
          break;
       case ST_Eol:
          data = a_Misc_expand_tabs(Start + i - len, len);
-         char *dp = data;
-         while (strlen (dp) > MAXWORD) {
-            char save = data[MAXWORD];
-            dp[MAXWORD] = '\0';
-            DW2TB(dw)->addText(dp, widgetStyle);
-            dp[MAXWORD] = save;
-            dp += MAXWORD;
-         }
-         DW2TB(dw)->addText(dp, widgetStyle);
+         DW2TB(dw)->addText(data, widgetStyle);
          DW2TB(dw)->addParbreak(0, widgetStyle);
          dFree(data);
          if (Start[i] == '\r' && Start[i + 1] == '\n') ++i;
@@ -183,15 +174,7 @@
    Start_Ofs += i - len;
    if (Eof && len) {
       data = a_Misc_expand_tabs(Start + i - len, len);
-      char *dp = data;
-      while (strlen (dp) > MAXWORD) {
-         char save = data[MAXWORD];
-         dp[MAXWORD] = '\0';
-         DW2TB(dw)->addText(dp, widgetStyle);
-         dp[MAXWORD] = save;
-         dp += MAXWORD;
-      }
-      DW2TB(dw)->addText(dp, widgetStyle);
+      DW2TB(dw)->addText(data, widgetStyle);
       DW2TB(dw)->addParbreak(0, widgetStyle);
       dFree(data);
       Start_Ofs += len;