Skip to content

Empty newline a the end of the file is removed after save #12375

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
DartBot opened this issue Aug 12, 2013 · 7 comments
Closed

Empty newline a the end of the file is removed after save #12375

DartBot opened this issue Aug 12, 2013 · 7 comments
Assignees
Labels
closed-as-intended Closed as the reported issue is expected behavior
Milestone

Comments

@DartBot
Copy link

DartBot commented Aug 12, 2013

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Create a .dart file with empty newline at the end.
  2. Save it.
  3. Manually open the from using other editor than Dart Editor.

What is the expected output? What do you see instead?

  • The empty newline is missing.

What version of the product are you using? On what operating system?

  • DartEditor 0.6.15, with disabled on-save trailing whitespace removal.
  • Ubuntu Precise.

Please provide any additional information below.

  • In case of multiple empty newlines at the end only the one is removed. In case of no empty newlines, nothing is removed.
@anders-sandholm
Copy link
Contributor

Added Area-Editor, Triaged labels.

@clayberg
Copy link

Set owner to @danrubel.
Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Medium label.

@danrubel
Copy link

Removed this from the Later milestone.
Added this to the M9 milestone.

@clayberg
Copy link

Removed this from the M9 milestone.
Added this to the 1.1 milestone.

@clayberg
Copy link

Removed this from the 1.1 milestone.
Added this to the 1.2 milestone.

@clayberg
Copy link

Removed this from the 1.2 milestone.
Added this to the 1.3 milestone.

@danrubel
Copy link

danrubel commented Mar 3, 2014

Dart Editor displays lines at the end of the file similar to Cloud 9.
Assuming that the file contains (not including quotes)

   "one line of text\n"

then Dart Editor and Cloud 9 display the file as having 2 lines while vi displays the file has having one line. The contents of the file are the same in both places. In other words, if the files ends with a newline character, then Dart Editor and Cloud 9 display that file as having a blank line at the end of the file, while vi does not.


Added AsDesigned label.

@DartBot DartBot added Type-Defect closed-as-intended Closed as the reported issue is expected behavior labels Mar 3, 2014
@DartBot DartBot added this to the 1.3 milestone Mar 3, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-as-intended Closed as the reported issue is expected behavior
Projects
None yet
Development

No branches or pull requests

4 participants