summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.c3
-rw-r--r--content/content.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/content/content.c b/content/content.c
index adf0cb6c8..dd0f855d6 100644
--- a/content/content.c
+++ b/content/content.c
@@ -190,7 +190,8 @@ static const struct handler_entry handler_map[] = {
html_open, html_close,
true},
{textplain_create, textplain_process_data, textplain_convert,
- 0, 0, 0, 0, 0, 0, true},
+ textplain_reformat, textplain_destroy, 0, textplain_redraw,
+ 0, 0, true},
{0, 0, css_convert, 0, css_destroy, 0, 0, 0, 0, false},
#ifdef WITH_JPEG
{0, 0, nsjpeg_convert,
diff --git a/content/content.h b/content/content.h
index 7dbcdcb08..aa963f811 100644
--- a/content/content.h
+++ b/content/content.h
@@ -108,6 +108,7 @@
#include "netsurf/content/content_type.h"
#include "netsurf/css/css.h"
#include "netsurf/render/html.h"
+#include "netsurf/render/textplain.h"
#ifdef WITH_JPEG
#include "netsurf/image/jpeg.h"
#endif
@@ -212,6 +213,7 @@ struct content {
/** Data dependent on type. */
union {
struct content_html_data html;
+ struct content_textplain_data textplain;
struct content_css_data css;
#ifdef WITH_JPEG
struct content_jpeg_data jpeg;