# HG changeset patch # User Mike Becker # Date 1738621025 -3600 # Node ID a9230f197e61dc9fb3c7bfa1d8eb0e6a16bc52c0 # Parent bc8b76ca9ee9f771df67c6d32f5ec27fa6e16b7a fix inconsistent use of tabs and spaces in indentation diff -r bc8b76ca9ee9 -r a9230f197e61 src/html.cpp --- a/src/html.cpp Mon Feb 03 23:14:11 2025 +0100 +++ b/src/html.cpp Mon Feb 03 23:17:05 2025 +0100 @@ -32,10 +32,10 @@ static constexpr const char* weekdays[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"}; static unsigned indentation; - static const char *tabs = "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; + static const char *tabs = " "; static void indent(int change = 0) { indentation += change; - fwrite(tabs, 1, indentation, stdout); + fwrite(tabs, 4, indentation, stdout); } static std::string encode(const std::string &data) { @@ -129,7 +129,7 @@ if (fragment) { puts(""); } else { - puts("\t\t\n\t\n"); + puts(" \n \n"); } }