question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

White space U+000C FORM FEED incorrectly removed by Spyder text editor

See original GitHub issue

The U+000C (FORM FEED) character is valid white space in text, including Python source code.

What steps will reproduce the problem?

  • Create a text file foo.txt containing several lines of text, including one line containing only a U+000C character.

  • Open the file foo.txt in Spyder.

    Spyder will raise a modal dialogue “foo.txt contains mixed end-of-line characters. Spyder will fix this automatically.”

  • The U+000C characters have been removed.

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

Actual: The text is altered, by removing the valid characters.

Expected: the U+000C character should be treated as valid vertical white space, no message, and left unchanged.

The non-printable U+000C is typically shown in text editors by a visible glyph (e.g. “^L” or “↡”) in a different colour.

Please provide any additional information below

“The form feed character is sometimes used in plain text files of source code as a delimiter for a page break, or as marker for sections of code.” — https://en.wikipedia.org/wiki/Page_break#Form_feed

“A logical line that contains only spaces, tabs, formfeeds and possibly a comment, is ignored” — https://docs.python.org/3/reference/lexical_analysis.html#blank-lines

Version and main components

  • Spyder Version: 3.2.4
  • Python Version: 3.6.4
  • Qt Versions: 5.9.2, PyQt5 5.9.2 on Linux

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.3 (OK)
numpy >=1.7      :  1.13.3 (OK)
sphinx >=0.6.6   :  1.6.5 (OK)
rope >=0.9.4     :  0.10.5 (OK)
jedi >=0.9.0     :  0.11.0 (OK)
psutil >=0.3     :  5.4.2 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.7.4 (OK)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Jan 23, 2018

I don’t maintain code at GitHub (because Git is a fully distributed version control system), and I am pretty sure GitHub does not work for pull requests from repositories elsewhere.

Sorry, we’re pretty swamped and don’t have time to do your job. If you want your work integrated in Spyder, please open a pull request like everybody else.

1reaction
jitseniesencommented, Jan 18, 2018

In my opinion this is a bug. A formfeed character is not an end-of-line character. However, it is a very low priority issue for me because I don’t recall seeing formfeeds in Python source files.

I thought that closing as wontfix means we (as developers) don’t want to fix it. If we would consider pull requests, I think the bug should be kept open and perhaps given an appropriate label as wishlist (which does not exist) or help wanted (which does exist but is perhaps not so clear).

Read more comments on GitHub >

github_iconTop Results From Across the Web

weird dot when i press my space key Spyder-IDE
(Spyder maintainer here) Those dots are displayed when you activate the option called Show blank spaces , which is present in the Source ......
Read more >
Editor — Spyder 3 documentation
Spyder's multi-language Editor integrates a number of powerful tools right out of the box for an easy to use, efficient editing experience. The...
Read more >
Working with Spyder — Spyder 5 documentation
Search for text or regular expressions across your entire project with the Find pane. Discover and explore structured documentation in the Online Help...
Read more >
Installation Guide — Spyder 5 documentation
Spyder is relatively easy to install on Windows, Linux and macOS. ... guide and search the issue tracker for your error message and...
Read more >
First Steps with Spyder — Spyder 5 documentation
Discover the basics of using the Spyder interface and get an introduction to ... Run a script in the Editor and see the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found