diff -r 2c128952f198 -r 8639ccd855ba src/html.cpp
--- a/src/html.cpp Sat Feb 01 17:15:14 2025 +0100
+++ b/src/html.cpp Mon Feb 03 23:13:19 2025 +0100
@@ -67,9 +67,12 @@
}
}
-void html::open() {
- puts(
-R"(
+void html::open(bool fragment) {
+ if (fragment) {
+ puts("
");
+ indentation = 1;
+ } else {
+ puts(R"(
- )");
- indentation = 2;
+
+
)");
+ indentation = 3;
+ }
}
-void html::close() {
- puts("\t\n");
+void html::close(bool fragment) {
+ if (fragment) {
+ puts("
");
+ } else {
+ puts("\t\t
\n\t\n");
+ }
}
void html::h1(const std::string& heading) {