summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-10-04 16:35:57 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-10-04 16:35:57 +0300
commit77f503bd6db90bd882e389ea977f02a2773e14f2 (patch)
treec6aa2a7410744c640c530016f4f65746a1ee5ac5 /example
parent5dd4f05089608a66c435d6be36d4bc93dc425986 (diff)
downloadtexo-77f503bd6db90bd882e389ea977f02a2773e14f2.tar
texo-77f503bd6db90bd882e389ea977f02a2773e14f2.tar.xz
texo-77f503bd6db90bd882e389ea977f02a2773e14f2.zip
Semi-working html. =)
Diffstat (limited to 'example')
-rw-r--r--example/filter_html.cpp5
-rw-r--r--example/makefile2
2 files changed, 3 insertions, 4 deletions
diff --git a/example/filter_html.cpp b/example/filter_html.cpp
index ced8f5f..a1957c3 100644
--- a/example/filter_html.cpp
+++ b/example/filter_html.cpp
@@ -8,11 +8,10 @@ int main()
TexoHTMLProducer producer(exporter);
TexoHTMLImporter importer(producer);
importer.PutStr(
- "<script>EVIL MAGIC</script>\n"
+ "<script>EVIL MAGIC</script></p>\n"
"<a href='#'>Some</a> br:<br/>\n"
"<p class='evil_too'>And paragraphs work well too...</p>\n"
- "<b>You</b> <i>can</i> <del>use</del> <ins>some</ins> witchcraft.\n"
+ "<b>You</b> <i>can</i> <del>use</del> <ins>some</ins> <p>witchcraft.\n"
);
return 0;
- return 0;
}
diff --git a/example/makefile b/example/makefile
index 5255f5b..39d4db7 100644
--- a/example/makefile
+++ b/example/makefile
@@ -2,7 +2,7 @@
# DEBUG = yes
CC = g++
-EXAMPLES = plain_to_html
+EXAMPLES = plain_to_html filter_html
CFLAGS = -Wall
ifeq '$(DEBUG)' 'yes'