summaryrefslogtreecommitdiff
path: root/example/plain_to_html.cpp
blob: 86171a649333e74df4ea103d5f90902382be599d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <html.hpp>
#include <plain.hpp>
#include <file.hpp>


int main()
{
    TexoFileExporter exporter(stdout);
    TexoHTMLProducer producer(exporter);
    TexoPlainImporter importer(producer);
    importer.PutStr(
        "I am a little cute line. \n"
        "I am another and that's fine. \n"
        "But I am as long as a pine,\n"
        "so lets drink a glass of wine.\n\n"
        "Second paragraph was started here. \n"
        "Take your bananas and go home, seer.\n"
    );
    return 0;
}