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

Bxslider Unwanted Top & Bottom White Space

I'm not sure where the extra white space on the top and bottom of my slider is coming from. Is it padding or margins? If anyone can assist me, it would be greatly appreciated. jsfiddle.net/fH3EL
Ritstyx
  • 25
  • 2
  • 8
2
votes
1 answer

Using gradle with an Exec task when workingDir has white spaces

I am following the documentation and I tried to create an Exec task: task karmaTest(type:Exec) { // #1 workingDir project.projectDir; // #2 workingDir project.projectDir.canonicalPath; // #3 workingDir project.projectDir.absolutePath; //…
dierre
  • 7,140
  • 12
  • 75
  • 120
2
votes
1 answer

How to remove blank lines in text file python?

In my python script, I write specific columns from a text_file to a new_text_file separated by , because the new_text_file will later become a csv_file. There are white space lines left over in the new_text_file because of lines I skipped writing…
hjames
  • 439
  • 5
  • 12
  • 19
2
votes
3 answers

Using sed with an array to search for a string plus whitespace

I'm using sed to replace many lines in several files and I've run into a problem. I use an array to give sed many commands but need to include a couple spaces in the search to prevent sed form finding and deleting too many lines. code: ( IFS='|';…
user2690569
  • 53
  • 1
  • 6
2
votes
3 answers

Squeeze a CONCATENATE up if field is empty, so space gap isn't so large

I have a problem where I/we have created a CONCATENATE from various field in Excel (see below) and all have text currently which is fine and we have applied single spaces between each join. Problem I have is if a field is blank my single space…
2
votes
1 answer

Are non breaking spaces in html bigger than normal spaces?

I'm trying to fix up some code on a site i'm working on. The site is using non-breaking spaces( ) and that is breaking the the flow a tiny bit on the mobile site so I want to replace them with a normal space. This fixes the mobile site, but…
samuraiseoul
  • 2,888
  • 9
  • 45
  • 65
2
votes
1 answer

Whitespace when retrieving database row from Entity Framework

I am using Entity Framework and I am adding a User (UserName and Password) to a database table. This table has a UserName column (nchar(20)) and a Password column which is hashed (varchar(50)). The problem occurs when I retrieve a User from the…
Duvarian
  • 177
  • 3
  • 10
2
votes
2 answers

what is ^K in output of cat -v ? For use in mysql

I have run cat -v on a file, see ^K where I was expecting to see some kind of whitespace, but don't know how to translate that code into something I can use to find and replace the character in MySQL. Context: I have a mysql field that appears to…
user2616155
  • 330
  • 2
  • 9
2
votes
2 answers

Regular Expression To Match String Not Starting With Or Ending With Spaces

I need a regular expression that makes sure a string does not start with or end with a space. I don't care if it has a space in the "middle" just not at the beginning or the end. I have a regular expression that almost works: ^\S.*\S$ Here are some…
Jan Tacci
  • 3,131
  • 16
  • 63
  • 83
2
votes
1 answer

Xml Schema Pattern To Not Allow Whitespace At The Beginning, Inside Of, Or At The End Of A String

I have elements in my xml schema that are of type string. I need to restrict the string, however, to disallow any whitespace at the beginning, end, or "inside" the string and also have a length of at least 1. Here are some values followed by what I…
Jan Tacci
  • 3,131
  • 16
  • 63
  • 83
2
votes
2 answers

MediaElement.js RTMP URL containing whitespace does not play in Firefox

I am running into an issue with the MediaElement.js media player, where filenames containing whitespace (e.g., "File 1.mp4") cannot be played using the RTMP protocol. This issue only appears to happen when using the media player in Firefox. I am…
2
votes
1 answer

Grails string replace not working?

I have an object being passed to the controller from a view and it contained double spaces in it that I need to remove. I have gone down the standard path and used the correct functionality to try and remove these double spaces but it doesn’t work.…
user723858
  • 1,017
  • 3
  • 23
  • 45
2
votes
2 answers

Form Text Field to ONLY accept numbers and whitespace

I have a basic enquiry form on my website and I want one of the fields to ONLY accept numbers and keyboard spaces (whitespace). Currently, the phone number field only accepts numbers using: if(isNaN(form.phone.value)) { alert('Due to SPAM this…
2
votes
1 answer

How to create a parser which is a whitespace but not a line separator, in PetitParser?

There is a built-in whitespace() parser in PetitParserDart, which checks character in: (9 <= value && value <= 13) || (value == 32) || (value == 160) || (value == 5760) || (value == 6158) || (8192 <= value && value <= 8202) || (value == 8232) ||…
Freewind
  • 193,756
  • 157
  • 432
  • 708
2
votes
5 answers

Checking string for whitespace

Is there a way I can check for whitespace?For example, I DO NOT want to check for whitespace such as this... $string = "The dog ran away!"; and have it output Thedogranaway! I want to check if there if the entry is ALL whitespace and whitespace…
homework
  • 4,987
  • 11
  • 40
  • 50