Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method CodeBlockWriter.prototype.hangingIndentUnlessBlock
import { CodeBlockWriter } from "https://deno.land/x/dnt@0.36.0/lib/mod.deps.ts";

Writes the text within the provided action with hanging indentation unless writing a block.

Parameters

action: () => void
  • Action to perform with hanging indentation unless a block is written.