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

How to send email with html table output in email

I am working on ArrayList, i want to send email type of html format with arraylist content, i am trying to write array content in BufferedWriter Like.. mOrderList = db.getOrderList(); // getting all arrayList content for (int i = 0; i <…
CrazyMind
  • 1,006
  • 1
  • 20
  • 22
2
votes
1 answer

Trying to keep whitespace in a code block

I'm trying to use markdown to format a web page. Part of the web page has block quotes and code blocks. In some of the code blocks, the leading and trailing white space (empty lines) is important. I can't find much on this and can't figure out how…
MTeck
  • 1,642
  • 3
  • 16
  • 34
2
votes
1 answer

Make IE respect your whitespace with dynmically changed content

If I have the following line in html: wtf and then I run the jQuery statement: $("span").html("test"); It ends up looking like "testwtf" instead of "test wtf". Is there anything I can do about this without changing the html?
B T
  • 57,525
  • 34
  • 189
  • 207
2
votes
2 answers

Missing required whitespace from connection string in Web.config

My connection string looks like the following: I am getting an error on…
JackofAll
  • 517
  • 4
  • 13
  • 23
2
votes
1 answer

Does any body know to align script tag in html? As I have to align the script tags one below the other

I am developing a website for a mobile using jquery. where i haave to use charts like Bar, pie, line etc. as this is been achhieved through Javascript. i have imported all the charts which i needed. but i have to align these charts one by one in a…
kmoorthy
  • 21
  • 1
2
votes
2 answers

Whitespace in SQL with C#

I have a Windows application written in C# which connect to SQL database. I have text fields inside my application and update the database like this: string name = textBox60.Text; string sql = "insert into myTable(Name) values ('" + name +…
AkariKamigishi
  • 277
  • 7
  • 23
2
votes
4 answers

A space before function call in c++

Is the following code allowed in c++? a. foo() (note the space before "foo") I would assume not, but the compiler doesn't complain.
Rivka
  • 823
  • 2
  • 7
  • 20
2
votes
1 answer

C Program - Palindrome with functions - almost fully complete one small issue

Is there a way I can remove the white spaces when comparing two strings. The assignment is create a palindrome that is case insensitive and must ignore the white spaces. So far I have void cmpNoCase(char str1[], char str2[]){ if(strcasecmp(str1,…
2
votes
6 answers

Appending white spaces to a string

I have a string: str="Myname" I want to add four white spaces after the string. What I did was: str=str+" "+"somename" When I print the str as <%= str %>, the output shows only one white space. How can I make this work? I also tried: str=str+"…
ѕтƒ
  • 3,547
  • 10
  • 47
  • 78
2
votes
3 answers

how can i ignore white space while scanning

I have a file: 12345678;ABC 123456A12345678;45678945 This is what I do: Scanner s = new Scanner(new File(testCase.getFileName())); while (s.hasNext()) { String[] lineItems =…
Aravind Datta
  • 23
  • 1
  • 1
  • 3
2
votes
1 answer

Jinja2 automatic creation of prefix whitespace

In StringTemplate - which I've used in some projects to emit C code - whitespace prefixes are automatically added in the output lines: PrintCFunction(linesGlobal, linesLocal) ::= << void foo() { if (someRuntimeFlag) {
ttsiodras
  • 10,602
  • 6
  • 55
  • 71
2
votes
1 answer

iOS: Better justification with CoreText

I'm floating some text around an image using CoreText and kCTJustifiedTextAlignment to show the text justiefied - but with larger images, smaller text-areas and less whitespaces CoreText does not only widen whitespaces but also the margin between…
Phil
  • 568
  • 3
  • 19
2
votes
1 answer

Read a space character from an XML element

A surprisingly simple question this time! :-) There's an XML file like this: Now I need to read exactly whatever is in the element. Be it a single whitespace like U+0020. My naive guess: XmlDocument xd = new…
ygoe
  • 18,655
  • 23
  • 113
  • 210
2
votes
1 answer

white-space: pre-wrap not working in IE

I am using white-space: pre-wrap. Content is not being wrapped in IE in Quirk mode. Is there any solution to get it working for quirk mode? Note: It is working fine in strict mode of IE8 and IE9.
D Vekaria
  • 140
  • 3
  • 11
2
votes
1 answer

Comparing two files

I am comparing two files by reading them into filestream and comparing byte by byte. How can I skip whitespaces while comparing? I am using C#.net
Thomas Manalil
  • 1,657
  • 4
  • 16
  • 23