From 7b09f265c1deb12c9e6778c4d92473d66fc5406b Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 16 Oct 2019 19:34:47 +0300 Subject: [texo] Starting rewriting... --- examples/plain_to_html.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/plain_to_html.cpp (limited to 'examples/plain_to_html.cpp') diff --git a/examples/plain_to_html.cpp b/examples/plain_to_html.cpp new file mode 100644 index 0000000..9a81652 --- /dev/null +++ b/examples/plain_to_html.cpp @@ -0,0 +1,21 @@ +#include +#include +#include +#include + + +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; +} -- cgit v1.2.3