Questions tagged [spaces]

The space character, `U+0020`, used to separate words/tokens in most natural and programming languages.

The space character, U+0020, used to separate words/tokens in most natural and programming languages. Space is a whitespace character.

Spaces are frequently of concern to programmers in the context of languages with significant whitespace (e.g. Python), source code indentation, and separating tokens. Separating tokens correctly is important for shell scripts, URIs, file names/paths, text processing, and string formatting. Questions regarding all of these areas are common on Stack Overflow, as spaces appearing unexpectedly can cause unexpected behavior whose source is not immediately obvious.

"Spaces" may also refer to the virtual desktop functionality of Mac OS X, first referred to as "Spaces" in OS X 10.5.

1024 questions
0
votes
1 answer

Cocos2D: CCLabelTTF won't preserve ending whitespace.

I need to have a CCLabelTTF print spaces at the end of a string, but they won't. I can log the string and clearly see that the spaces at the end are preserved by highlighting the log. I've tried appending a decimal ascii non-breaking space, but it…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90
-1
votes
1 answer

Remove spaces in PHP

I'm new to PHP and I've been searching all day how to do this, but how would I make it so that when a user inputs info into a database It pulls the data as "blah-bah" Instead of "Blah Blah"
WittyPleb
  • 553
  • 2
  • 10
  • 22
-1
votes
3 answers

Keeping spaces in textarea (JavaScript variable)

I have a variable in JavaScript that contains the contents of an html textarea. When I print the variable all that were entered by the user are forgotten. Is there any way to find the spaces in the string so I can separate each line?
Alex
  • 1,060
  • 2
  • 17
  • 35
-1
votes
1 answer

How to find enter and space between excel cell value-- excel 2007

How to find enter and space in the excel cell value by uisng VBA. For example if the cell value contain value like "Some value" then How to find that this cell contain space. In second case if the cellvalue contain Enter like while typing values in…
user999896
  • 129
  • 2
  • 6
  • 21
-1
votes
2 answers

Reading constant number of characters in C++

How would you read a string if it was no longer than 20 characters and could contain spaces in C++? For example I have this kind of file: 3 Namama 4 5 12 Cool 4 2 34 Not So Cool 4 2 45 I want to write it in…
Pijusn
  • 11,025
  • 7
  • 57
  • 76
-1
votes
1 answer

How to identify records in a DataFrame (Python/Pandas) that contains leading or trailing spaces

I would like to know how to write a formula that would identify/display records of string/object data type on a Pandas DataFrame that contains leading or trailing spaces. The purpose for this is to get an audit on a Jupyter notebook of such records…
mmunozjr
  • 1
  • 1
-1
votes
1 answer

How to restrict the user to enter leading, trailing and consecutive space in a string in kotlin

I have a scenario, where I need to restrict the user to enter leading, trailing and consecutive space and if the user enters do not update the text with space but show the error message. Its like not updating the text itself when user enters any of…
Dishita Shah
  • 21
  • 1
  • 6
-1
votes
2 answers

Remove breaks in input strings

This is a scrapping from a selenium scrap dump: ['The Quest for Ethical Artificial Intelligence: A Conversation with Timnit Gebru', 'Mindfulness Self-Care for Students of Color', 'GPA: The Geopolitical landscape of the Olympic and Paralympic…
Rex
  • 13
  • 2
-1
votes
1 answer

bash find where starting directory has a space

MacOSX Bash terminal: find . -type f is straightforward find A -type f where A is a directory is equally straightforward However I have a directory A\ copy (on the system it looks like A copy of course) I want to search this as the starting…
Richard L
  • 99
  • 1
  • 6
-1
votes
2 answers

How to get line separated with spaces to store user address

#include #include using namespace std; int main() { string emailAddress, computerTyp, temp; std::string address; cout << "ITSx IT Solutions\n" << endl; cout << "enter your email address : " << endl; cin >>…
-1
votes
2 answers

git commands fail with spaces in path

Hey guys I've looked all over stack overflow and have tried a lot of things. My git commands won't work when there is spaces in the file paths (windows). Here is an example of what I am trying to checkout As you can see I can't checkout any of them…
user12179064
-1
votes
1 answer

How to escape spaces in allure serve path with protractor

I am trying to run allure report on a protractor project using the command 'allure serve path-to-allure-results' from cmd terminal however I faced an issue with the path because it has spaces and file is not found by the system, report is generated…
Cesar
  • 49
  • 1
  • 3
-1
votes
1 answer

Getting cmd error because my windows username has spaces in it

I am following this git repository Windows + Anaconda installation guide. I have downloaded the zip folder in my PC while running the command I am getting an Error pyrcc5 -o "C:\Users\DANIA NIAZI\labelImg-master\libs\resources.py" "C:\Users\DANIA…
Daniya Niazi
  • 180
  • 3
  • 10
-1
votes
1 answer

Wow, changing indentation broke my program?

My little Python and Kivy script was working. Then a little lightbulb popped up with an option to do something like adjust the style, which seemed like a good idea so I did. Then, it would not run unless I changed the indent spaces to multiples of 3…
river251
  • 13
  • 5
-1
votes
3 answers

Why does my program add additional an additional blank space at the beginning of the row?

Hello I hope you can help me, I'm trying to make an algorithm that takes a txt file with a list of names, reorder them randomly and assign them to teams. It works, the only issue I have is that for some reason it adds an extra space in all rows of…