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

Recognizing Spaces in text

I'm writing a program that deciphers sentences, syllables, and words given in a basic text file. The program cycles through the file character by character. It first looks if it is some kind of end-of-sentence marker, like ! ? : ; or .. Then if the…
Blackbinary
  • 3,936
  • 18
  • 49
  • 62
2
votes
5 answers

Random gap between div elements

I have a random gap appearing between div elements and I can't seem to make it go away. Problem is shown https://i.stack.imgur.com/ehy22.png Here is my related code
Fonti
  • 1,169
  • 2
  • 9
  • 14
2
votes
1 answer

XDocument.Parse preserving unwanted whitespace

XDocument.Parse is retaining unwanted white space when parsing my XML. It appears that my XML is "not indented," which means that white space is retained regardless of whether or not I send in the LoadOptions.PreserveWhitespace flag…
user1803368
  • 95
  • 1
  • 8
2
votes
3 answers

How do I remove white space from right side of screen

This wordpress website http://www.sulu13.net/14 has a responsive logo and menu that I wanted centered in order to line up with the edges of the content below in the posts. So I added: .tc-header .brand a { /* Logo */ position: relative; left:…
nax3t
  • 117
  • 4
  • 4
  • 50
2
votes
3 answers

Random white space in body element

I've sumbled upon a problem that never occured before : A white space ( " " ) in the body element. Obviously, that little thing is screwing with the whole layout, and on top of it, it's actually dumping the head's code into the body. I.E : Instead…
zaedas99
  • 50
  • 7
2
votes
4 answers

Trimming white space - front end or back end?

I'm working on re-designing a ASP.NET application that uses a pre-existing database. The back-end has a whole bunch of white spaces that were added long before I arrived, and so now its got me wondering ... Would it be better for me to trim the…
2
votes
1 answer

Regular Expression Validation error does not show up on entering a whitespace

I have written a regular expression to allow maximum 3 decimal digits. The Regex is: ^\d+([.,]\d{1,3})?$ It works perfectly for correct inputs such as (100,100.22 etc) and also shows up the validation error when the user tries to input (0. or , or…
user3253718
2
votes
2 answers

White space above display:inline-block divs

I'm developing a website and I'm having difficulties understanding why on earth this is happening: https://i.stack.imgur.com/hxArz.png Here is my html for the content div:

Prosperity…

2
votes
3 answers

Adding Whitespace in Middle of Sentence

In HTML5, how do you skip 5 spaces in a
? For example, how do you do this: "Drumroll... [5 spaces] Something!"
Drumroll... [5 spaces] Something!
just outputs "Drumroll... Something!" There does not seem to be any tags such as…
Evorlor
  • 7,263
  • 17
  • 70
  • 141
2
votes
2 answers

TextFied Expression: keep whitespaces at the end of a textfield

I'm having a problem in a report where I have a $F{field} in which you can receive a value with whitespaces at the end. Example : "20142101          "). The textField must be horizontally align to "right". The result in my PDF is "20142101" (the…
user3218533
  • 33
  • 1
  • 3
2
votes
1 answer

MongoDB querying whitespace with regex

I've got a large collection of text data stored in MondoDB that users can query via keyword or phrase, and have an issue where some data has unicode character U+00A0 (no-break space) instead of a regular space. Fixing up the data not being an option…
devin
  • 23
  • 1
  • 3
2
votes
3 answers

Trim substrings within PHP regular expressions

I have a string which may contain a pattern like: LINK([anchor text],[link]) What I would like to do is transform this expression into a HTML link: anchor text At the moment, I'm performing the replacement with the following PHP…
Giorgio
  • 1,940
  • 5
  • 39
  • 64
2
votes
1 answer

How to replace all whitespace at the start of lines with a tab?

Is there a simple way to replace all whitespace at the start of lines with a single tab character? I thought of using a loop and a StringBuffer: String s = "some multi line text\n foo bar\n blah"; StringBuffer sb = new StringBuffer(s); for…
Bohemian
  • 412,405
  • 93
  • 575
  • 722
2
votes
1 answer

Spaces in the beginning of line in Notepad++

I have opened a simple text file in Notepad++ and "iterated" through all languages' styles available in my Language menu. I noticed, that after applying some of them, text displays spaces in the beginning of some lines (left margin), while in other…
trejder
  • 17,148
  • 27
  • 124
  • 216
2
votes
6 answers

What is causing this random white space?

I ended up setting the display properties of some div's in one of my designs to table/table-cell respectively to take advantage of the vertical-align text support. However, I now have some white-space that I'm struggling to make sense of. My code…
Anonymous
  • 6,181
  • 7
  • 45
  • 72