Questions tagged [space]

DO NOT USE THIS TAG! It is too ambiguous; instead please use a more specific tag like letter-spacing (separation between letters), whitespace (between words), margin (areas of a screen), layout or a platform/language-specific tag (for non-web layouts), etc.

DO NOT USE THIS TAG! It is too ambiguous; please tag your platform and/or language instead and if necessary a more specific tag like

  • letter-spacing (separation between letters),
  • whitespace (between words, glyphs),
  • margin (areas of a screen),
  • layout or a platform-specific tag (for non-web layouts)

etc.

Space characters in text systems indicate separation between words or glyphs. While most Western scripts use only one space character, Unicode defines multiple different kinds of whitespace characters for use in specialized typography functions and in Asian languages.

1977 questions
27
votes
2 answers

GNU Make Convert Spaces to Colons

Given a colon-delimited list of paths, getting a space-delimited list with GNU Make is straightforward: CPATHS := /usr/bin/foo:/usr/bin/baz:/usr/bin/baz SPATHS := $(subst :, ,$(CPATHS)) However, I couldn't find a nice way to go the opposite…
5gon12eder
  • 24,280
  • 5
  • 45
  • 92
26
votes
2 answers

What is the difference between   and  ?

I have written one XSLT to transform xml to html. If input xml node contains only space then it inserts the space using following code.   There is another numeric character which also does same thing as shown…
Sambhaji
  • 990
  • 5
  • 19
  • 31
25
votes
3 answers

golang accepting input with spaces

I'm just starting with GO and I understand that SCANF uses spaces as a separator in GO. fmt.Scanf("%s",&input) I cant really find a way to accepts inputs that contain spaces as valid characters.
av192
  • 444
  • 1
  • 4
  • 10
25
votes
2 answers

MySQL query to replace spaces in a column with underscores

I have a MySQL database table 'photos' with a column 'filename'. I need to replace the spaces in the filename column values with underscores. Is it possible with a single/multiple query? If so how?
Mithun Sreedharan
  • 49,883
  • 70
  • 181
  • 236
24
votes
2 answers

cannot preserve space between runs

i want to generate a word document as an input i have this string "open packaging conventions" and each word will have a different style the result should be open packaging conventions WordprocessingDocument document =…
Cerise Frutta
  • 241
  • 1
  • 2
  • 4
24
votes
5 answers

What's the escape sequence for blanks in C?

I'm writing a program to count blanks, tabs, and newlines. I remember what the escape sequence for tabs and newlines are, but what about blanks? \b? Or is that backspace?
MW2000
  • 553
  • 4
  • 7
  • 12
23
votes
4 answers

What actually the meaning of "-n" in sed?

According to http://linux.about.com/od/commands/l/blcmdl1_sed.htm suppress automatic printing of pattern space I've tested with or without -n, sed will produce same result I dont understand what space does it means.
Jon Maikel
  • 233
  • 1
  • 2
  • 4
22
votes
5 answers

Space between two divs

My issue is that I have two (or more) divs of the same class, that need to be spaced from each other. I cannot directly use margins however, as the last or first element would also have the margin applied, which I do not want. -Green is where I…
Fewfre
  • 1,461
  • 3
  • 19
  • 32
21
votes
4 answers

Simplest way to get a complete list of all the UTF-8 whitespace characters in PHP

In PHP, what's the most elegant way to get the complete list (array of strings) of all the Unicode whitespace characters, encoded in utf8? I need that to generate test data.
Ivan Krechetov
  • 18,802
  • 8
  • 49
  • 60
19
votes
2 answers

MYSQL TINYBLOB vs LONGBLOB

This is a follow up for my previous question: Blob and Storage Requirement I did some testing using SHOW TABLE STATUS, and found out that the total disk space used actually only depends on the size of actual files uploaded to the database and not on…
jombie
  • 315
  • 1
  • 3
  • 7
18
votes
6 answers

PHP mail function randomly adds a space to message text

I have a very simple PHP script, something like: while ($condition){ echo " THANKS "; } Of course, I have a bit more code but it doesn't matter. Once I had created this piece of code, the script sends an…
Andy
  • 525
  • 1
  • 7
  • 18
18
votes
6 answers

Android: how to make it no space between 2 button in a horizontal linearlayout

I just found I cannot remove the space between 2 buttons even if I set the layout_marginRight and layout_marginLeft as below. But it make sense if I set the space larger such as 10 dp. Any way to solve it?
George_BJ
  • 596
  • 2
  • 9
  • 21
18
votes
4 answers

Javascript - Removing spaces on paste

I have an input text field with a maxlength of 10. The field is for Australian phone numbers (10 digits). Phone numbers are generally split up into the following syntax 12 12345678 If someone copies the above and pastes that into my input field, it…
Matt
  • 1,490
  • 2
  • 17
  • 41
18
votes
4 answers

Specifying arguments with spaces for running a python script

How to run a python with arguments that would contain spaces? I am using MacOS For example, >python testProgram.py argument 1 argument 2 where "argument 1" is a single argument?
ssk
  • 9,045
  • 26
  • 96
  • 169
17
votes
2 answers

Beamer - make itemize (and space occupied) disappear

So I have two itemize's on one slide and a graphic underneath them both: \onslide<1>{ \begin{itemize} ... \end{itemize} } \onslide<2>{ \begin{itemize} ... \end{itemize} } \includegraphics[width=5cm]{abc.eps} So what I…
Jonathan Apodaca
  • 5,458
  • 6
  • 30
  • 41