Skip to content

Wrapping creates a newline before the close statement #268

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
Crote opened this issue Jul 14, 2015 · 2 comments
Closed

Wrapping creates a newline before the close statement #268

Crote opened this issue Jul 14, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@Crote
Copy link

Crote commented Jul 14, 2015

When running wrapper_open='open' wrapper_close='close' bundle exec rake annotate_models, annotate created the following block:

# open
# == Schema Information
#
# Table name: comments
#
#  id               :integer          not null, primary key
#  commentable_id   :integer          not null
#  commentable_type :string(255)      not null
#  user_id          :integer          not null
#  text_sf          :text
#  created_at       :datetime         not null
#  updated_at       :datetime         not null
#

# close

Note the newline before # close, it should not be there. This happens with all models.

@ctran
Copy link
Owner

ctran commented Jul 18, 2015

What version of annotate and Rails are you using?

@Crote
Copy link
Author

Crote commented Jul 18, 2015

  • annotate (2.6.10)
  • rails (4.1.12)

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