Questions tagged [whitespace]

Whitespace, or white space, is often used to refer to any combination of spaces, tabs, and new lines which create blank space between text, either horizontally or vertically.

Whitespace, or white space, is often used to refer to any combination of spaces, tabs, and new lines which create blank (or white, originally referring to the background color behind it) space between text, either horizontally or vertically. White space is not represented by a visual character or symbol, but in most cases does occupy space on the page.

Whitespace Characters

The following characters are all defined as being whitespace.

  • U+0009 - Horizontal Tab
  • U+000A - Line Feed
  • U+000B - Vertical Tab
  • U+000C - Form Feed
  • U+000D - Carriage Return
  • U+0020 - Space
  • U+0085 - Next Line
  • U+00A0 - Non-Breaking Space
  • U+1680 - Ogham Space Mark
  • U+180E - Mongolian Vowel Separator
  • U+2000 - EN Quad
  • U+2001 - EM Quad
  • U+2002 - EN Space
  • U+2003 - EM Space
  • U+2004 - Three-per-EM Space
  • U+2005 - Four-per-EM Space
  • U+2006 - Six-per-EM Space
  • U+2007 - Figure Space
  • U+2008 - Punctuation Space
  • U+2009 - Thin Space
  • U+200A - Hair Space
  • U+2028 - Line Separator
  • U+2029 - Paragraph Separator
  • U+202F - Narrow Non-Breaking Space
  • U+205F - Medium Mathematical Space
  • U+3000 - Ideographic Space
4336 questions
2
votes
1 answer

I have lost the synonym for BISCUIT when i gave SEABISCUIT,SEA, BISCUIT as whitespace is giving different results

I have lost the synonym for fruit as i gave SEABISCUIT,SEA,BISCUIT and BISCUIT is giving same result as SEABISCUIT as the synonym i used for them is "," .Please help me . Is there any other way to get the same result for SEABISCUIT and SEA BISCUIT.…
2
votes
0 answers

Chrome not rendering space unicode glyph

I'm working on a project that requires using a single glyph font to replace the space (unicode 0020) in flow text with a special character. I've got this working beautifully in IE9+, Firefox and Safari, but Chrome is not behaving. Opera looks the…
heydon
  • 315
  • 3
  • 9
2
votes
1 answer

Jsoup : Select a row with class name containing whitespace at the end

I am a newbie in Jsoup and could not find a solution while searching for a long time. I have a table, in which the tr has a classname with whitespace at the end.
Text comes…
2
votes
1 answer

Freemarker Interpolation stripping whitespace?

I seem to be having issues with leading/trailing spaces in textareas! If the last user has typed values into a textarea with leading/trailing spaces across multiple lines, they all disappear with exception to one space in the beginning &…
scottnaka
  • 65
  • 1
  • 10
2
votes
3 answers

Why doesn't this Regular Expression match a space?

I have the following regular expression: ([0-9]+),'(.)':([0-9]+),(L|R|'.') It matches this just fine: 1,'a':1,R However, if I replace a with a space, it fails: 1,' ':1,R Why doesn't . match it? Is a space not classified as a character? I can't…
David Brown
  • 35,411
  • 11
  • 83
  • 132
2
votes
2 answers

How to remove whitespace and carriage return symbols in Emacs?

Whenever I edit a Python or ELisp script, Emacs will display a '$' for every carriage return and a centered dot for every whitespace. I have no idea how to disable or get rid off this setting. After looking on Google, I tried to disable the local…
user1017102
  • 787
  • 1
  • 7
  • 14
2
votes
3 answers

Replace underscores to whitespaces using bash script

How can I replace all underscore chars with a whitespace in multiple file names using Bash Script? Using this code we can replace underscore with dash. But how it works with whitespace? for i in *.mp3; do x=$(echo $i | grep '_' | sed 's/_/\-/g'); if…
stardust
  • 343
  • 3
  • 17
2
votes
1 answer

Remove all whitespaces after
tag

I need to remove all whitespaces after
in a String. I'm getting some html text from a xml document that i am wiriting out in a android app with this code: information_view.setText(Html.fromHtml(information));. The problem is that this html…
Jiimmeh
  • 73
  • 8
2
votes
1 answer

CSS white-space cascading incorrectly?

I have the following basic structure:
Lots of text here
Lots more test here
I should always be visible
And this…
Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592
2
votes
1 answer

Whitespace in reused code chunks

I'm starting to learn R and Sweave and have spent the last couple of hours trying to figure out a problem that, according to my Google-fu, seems to be rather unknown or uncommon (as I found only two references to the problem). Namely, when re-using…
ThomasH
  • 830
  • 1
  • 8
  • 23
2
votes
1 answer

python regex: use first blank as sep but maintain rest of blank sequence

I'm fighting too long on this regex now. The split should use blank as separator but maintain the remaining ones in a blank sequence to the next token '123 45 678 123.0' => '123', '45', ' 678', ' 123.0' My numbers are floats as well and…
Wolfgang R.
  • 333
  • 1
  • 2
  • 10
2
votes
2 answers

wget download & relative link conversion misses whitespace encoding for css url() contents

I'm encountering a rather special case when I try to download a website and attempt to convert all links within a certain domain to relative links. The wget command I use is: wget -q -r -nH -H -D{domain-name} -l 5 -p -E -k -e robots=off {url} It…
2
votes
1 answer

Simple Framework: Eliminating unwanted white space in serialized XML

Question: How to eliminate unnecessary white space characters from the serialized XML while using Simple framework? Details: Let's consider this very basic example from the Simple framework website. The XML output is:
curioustechizen
  • 10,572
  • 10
  • 61
  • 110
2
votes
2 answers

Switchstatement stops reading at white spaces

So I'm having a problem doing an assignment for my java class. The purpose is to create a program that uses a switch statement to convert letters from a string to their phonetics. i.e, A or a becomes Alpha. The problem I'm having is the switch…
user1761953
  • 47
  • 1
  • 6
2
votes
2 answers

Why does my regexp not work when the strings end with spaces?

I am using this regexp - [^\s\da-zA-ZåäöÅÄÖ]+$ to filter out anything but A-Z, 0-9 plus the Swedish characters ÅÄÖ. It works as expected as long as the string isn't ending with whitespace and I am a bit confused on what I need correct to make it…
Industrial
  • 41,400
  • 69
  • 194
  • 289
1 2 3
99
100