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
4 answers

javascript - Replace " ." with "." to eliminate spaces before dots

I've tried with replace(/ ./g, '.'); to eliminate the comma before the dot without succes. Any idea what is wrong? Thanks.
zsola3075457
  • 177
  • 4
  • 14
2
votes
1 answer

javascript - How to reduce extra white spaces except line breaks

replace(/\s+/g,' '); reduces all whitespace to one space, including breaks. Sometime I have more than 1 spaces what I want to reduce to one, keeping the new lines, breaks.
zsola3075457
  • 177
  • 4
  • 14
2
votes
1 answer

Stop SQL*Plus Complaining About Whitespace

In SQL*Plus, if you execute the following using @: create table someTable ( someID number, somethingElse varchar2(50), somethingRelated number ); ...it will complain with something like: SP2-0734: unknown command…
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
2
votes
2 answers

Derby database path with whitespace

When using derby client driver, if there is white space in connection url, the connection get refused. Otherwise its ok. jdbc:derby://localhost:1888/c:/my database/db reports no database found
2
votes
2 answers

Bash: Pass Command Substitution to External Program (or Function) without Word Splitting

In the below code, I would like to have the output of pyfg() passed exactly as echoed (i.e. with the space between -htns and crl being interpreted literally, not as whitespace, by aoeu()) to aoeu(). Of course, the problem is that in aoeu(), $1 is…
catlover2
  • 251
  • 2
  • 15
2
votes
1 answer

Laravel 4 printing whitespaces

I have an annoying bug with Laravel producing whitespace characters into my source code when I use @extends and @yield. For example, these are the first lines of my index.blade.php file: @extends('template.main') @section('metas')
2
votes
1 answer

CSS issue with nesting white-space: normal; inside parent of white-space: nowrap; - Parent no longer has correct width

I'm trying to figure out why my parent element loses it's width when I do this? Please see my fiddle: http://jsfiddle.net/ks3Qu/ HTML

white-space: normal; on < a > tag breaks the ul's width but gives desired text effect.

Oneezy
  • 4,881
  • 7
  • 44
  • 73
2
votes
1 answer

Column alias with leading space causes error: Unknown column 'BAR. COL1' in 'field list'

I am working on a utility that exposes data from a warehouse that has machine-generated table/column names. The user is allowed to specify new names for the tables/columns to make the results more meaningful. The alias can be any valid MySQL…
rkOliver
  • 23
  • 3
2
votes
1 answer

How to prevent knockout from stripping empty text nodes from IE8 span siblings

Say I have 3 spans wrapped in a div.
1/1/2000 - 1/2/2000
Browsers are supposed to interpret the newlines between the spans as whitespace so that the resultant display looks like…
danludwig
  • 46,965
  • 25
  • 159
  • 237
2
votes
2 answers

Javascript Regex match everything except double spaces then replace

I need a regex that will match anything except white spaces or only words in between double spaces. Like : let's assume the underscores where equal to spaces just for example. foo_bar__The_Quick_Dog__is_addicted_to___jumping___ Then replace the…
ErickBest
  • 4,586
  • 5
  • 31
  • 43
2
votes
2 answers

Trimming fields in SQL

I imported data from Excel tables into SQL and a lot of fields had white spaces at their beginnings and ends. I tried update Table_Names set Name_ID = replace(Name_ID, ' ', '') and update Table_Names set Name_ID = LTRIM(Name_ID) and Update…
HelpASisterOut
  • 3,085
  • 16
  • 45
  • 89
2
votes
1 answer

Losing whitespace around escaped symbols in CDATA using Expat XML parser in C++

I'm using XML to send project information between applications. One of the pieces of information is the project description. So I have: Test & spaces around&some & amps! Or: "Test & spaces…
TheWalruss
  • 33
  • 3
2
votes
2 answers

Trying to parse a string delimited by | and I want to ignore " | | | | " but it does not work

So I am parsing a string and I am tokenizing it using | as a delimiter. However, I want to make sure that I do not parse spaces ( in any amount ) and simply ignore them. However for some reason, nothing is working completely. Some spaces escape the…
Georgi Angelov
  • 4,338
  • 12
  • 67
  • 96
2
votes
3 answers

php include html adds white spaces

I'm having troubles with multiple html pages include. I had main index.html but it started to be a bit too complex so I decided to split it in multiple html files and each one of them inport into single index.php using php. index.php file…
Kajiyama
  • 3,393
  • 8
  • 26
  • 38
2
votes
1 answer

CSS LESS Preprocessor adds unnecessary white space

I'm try to use CSS LESS preprocessor to convert .less to .css. However, no matter what preprocessor I use, they all add unnecessary white spaces to the output .css. For example, consider this LESS example: /* Images */ img { /* Site logo */ …
Jarzka
  • 755
  • 7
  • 22