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
-4
votes
1 answer

What is wrong with Emacs' indentation in shell scripts?

When I enter a function I get indentation like so: function bla { if []; then echo fi The first line after the function header is indented 4 literal spaces, then after the if line, I get a literal tab that is 8 spaces long. The…
bug
  • 515
  • 1
  • 5
  • 17
-5
votes
2 answers

How to remove str. Of spaces from list

A = ["a","b"," ","c"," ","d"] How can I remove str. Of white spaces from this list
-5
votes
3 answers

C# How to replace spaces with new lines

How to replace spaces with new lines. My text file looks like: 1 2 3 4 5 6 but I want to myString look like: 1 2 3 4 Code: StreamReader myReader = new StreamReader("TextFile1.txt"); string myString = myReader.ReadLine(); myString =…
mackOne
  • 9
  • 1
  • 1
-8
votes
1 answer

Line breaks between variables in PHP

I have a variable like this in foreach $variable=$variable1." ".$variable2; Output is apple fruit tomato fruit pineapple fruit How I want is apple fruit …
Mahesh Mohan
  • 103
  • 3
  • 9
1 2 3
68
69