diff --git a/src/specification.ts b/src/specification.ts index 745859d..c0b18f3 100644 --- a/src/specification.ts +++ b/src/specification.ts @@ -11,7 +11,9 @@ const disjunctionFormatter = new Intl.ListFormat("en", { export function render(variables: Variable[]): string { const app = appName(); - return header(app, variables) + "\n\n" + specification(variables); + return variables.length < 1 + ? header(app, variables) + : header(app, variables) + "\n\n" + specification(variables); } function appName(): string { diff --git a/test/fixture/specification/app-env-var.md b/test/fixture/specification/app-env-var.md index 3e4b4ef..0c71ed2 100644 --- a/test/fixture/specification/app-env-var.md +++ b/test/fixture/specification/app-env-var.md @@ -9,5 +9,3 @@ The `` app uses **declarative environment variables** powered b > Try [declaring] some environment variables to see them listed here! [declaring]: https://github.com/ezzatron/austenite#declarations - - diff --git a/test/fixture/specification/empty.md b/test/fixture/specification/empty.md index eed50ef..314c63a 100644 --- a/test/fixture/specification/empty.md +++ b/test/fixture/specification/empty.md @@ -9,5 +9,3 @@ The `` app uses **declarative environment variables** powered by > Try [declaring] some environment variables to see them listed here! [declaring]: https://github.com/ezzatron/austenite#declarations - -