Top "Whitespace" questions

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.

How can I trim whitespace by Velocity

I have a method called render_something which can creates a lot of whitespace, for example: <a href="#">#…

java whitespace velocity removing-whitespace
How do I remove leading whitespace chars from Ruby HEREDOC?

I'm having a problem with a Ruby heredoc i'm trying to make. It's returning the leading whitespace from each line …

ruby whitespace heredoc
How to read whitespace with scanner.next()

I have a scanner, and have set the delimiter to "", but it still won't read whitespaces with the next() method. …

java whitespace next
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 …

php utf-8 whitespace space
Does html_entity_decode replaces &nbsp; also? If not how to replace it?

I have a situation where I am passing a string to a function. I want to convert &nbsp; to " " (…

php html string whitespace html-entities
How do I read white space using scanf in c?

Problem: I need to be able identify when two whitespaces occur consecutively. I have read the following questions: how to …

c whitespace scanf fgets
Specifying Tab-Width?

Is it possible to define the tab-width when whitespace is displayed (say within a <pre> tag or something)? …

html css xhtml whitespace
Can xargs' default delimiter be changed?

I want the following behavior without having to explicitly specify it with options: xargs -d '\n' Unlike with most …

command-line whitespace xargs
Is there a way to make whitespace visible in the Xcode editor?

I want the tabs and spaces to be visible in Xcode. Is this possible? I can't find it under preferences.

xcode editor whitespace
git, whitespace errors, squelching and autocrlf, the definitive answers

Please can you explain about whitespace errors in git, what do they mean, what is 'squelching', and do I need …

git whitespace newline