Skip to content

Add actual indent spec used in indent spec examples #2543

Closed

Description

@danielcompton

On https://cider.readthedocs.io/en/latest/indent_spec/, I couldn't see the indent specs that were used in the Special Arguments and Internal indentation sections. Would it be possible to add them, so people can see how the spec influences the formatted code examples? Apologies if I've misinterpreted the docs here.

Activity

  1. stale commented on May 8, 2019

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!

  2. bbatsov commented on May 11, 2019

    @bbatsov
    Member

    Yeah, we should certainly add them. //cc @Malabarba

  3. Malabarba commented on May 15, 2019

    @Malabarba
    Member

    Those sections are using defrecord as an example, whose indent spec is already displayed higher up the same page ([2 :form :form [1]]).

  4. self-assigned this
    on Jul 18, 2023
  5. bbatsov commented on May 3, 2026

    @bbatsov
    Member

    The docs have been substantially rewritten since this was filed. The current indent_spec.adoc shows the specs inline in both sections:

    • "Special Arguments" section: "defrecord has [:block 2] (two special arguments)"
    • "Internal Indentation" section: "the full spec [[:block 2] [:inner 1]] gives defrecord both special argument handling and correct method body indentation."

    Closing as resolved. Please reopen if there's a specific page or section where the spec is still missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions