_`` ``` ``_ is indented. To overcome this we would need to
record some extra state in each `code_node`. For now we won't bother.
-The indents we insert will all be spaces. This might not work well
-for `Makefiles`.
+The indents we insert will mostly be spaces. All-spaces doesn't work
+for `Makefiles`, so if the indent is 8 or more, we use a TAB first.
##### internal functions
fprintf(out, "#line %d \"%s\"\n",
node->line_no, fname);
while (len && *c) {
- fprintf(out, "%*s", node->indent, "");
+ if (node->indent >= 8)
+ fprintf(out, "\t%*s", node->indent - 8, "");
+ else
+ fprintf(out, "%*s", node->indent, "");
if (node->needs_strip) {
if (*c == '\t' && len > 1) {
c++;