Skip to content

Indentation bug related to namespace metadata tags #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cheesinglee opened this issue Jul 3, 2015 · 1 comment
Closed

Indentation bug related to namespace metadata tags #304

cheesinglee opened this issue Jul 3, 2015 · 1 comment
Labels

Comments

@cheesinglee
Copy link

Adding a metadata tag to a namespace declaration causes the following lines in to be indented improperly (4 spaces instead of 2).

(ns ^:metadata my.namespace
    (:use clojure.test))
...

However, if a docstring is present, then indentation is correct again.

(ns ^:metadata my.namespace
  "my docstring"
  (:use clojure.test))

This issue was observed with emacs 24.5.1 and clojure-mode 4.2.0-snapshot, on Arch Linux x86_64.

@bbatsov bbatsov added the bug label Jul 4, 2015
@bbatsov
Copy link
Member

bbatsov commented Jul 4, 2015

Likely this has been broken since day 1. Guess we should try to fix it eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants