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.

HTML/CSS - Best practice for preserving white space on certain elements?

What is the best way to preserve white space in HTML? We have a lot of pages that bring down …

html css whitespace
Merging without whitespace conflicts

I've got a problem where I've got a large commit which changes about a thousand lines of code, removing whitespace …

git whitespace git-merge
Removing Whitespace From a Whole Data Frame in R

I've been trying to remove the white space that I have in a data frame (using R). The data frame …

r replace whitespace gsub
How to make separator in pandas read_csv more flexible wrt whitespace, for irregular separators?

I need to create a data frame by reading in data from a file, using read_csv method. However, the …

python csv pandas dataframe whitespace
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 …

c escaping whitespace space kernighan-and-ritchie
My diff contains trailing whitespace - how to get rid of it?

I've tried editing a php file in TextWrangler with line endings set to Unix, in NetBeans, and in vim. When …

git netbeans whitespace removing-whitespace textwrangler
Remove all blank spaces and empty lines

How to remove all blank spaces and empty lines from a txt File using Java SE? Input: qwe qweqwe qwe …

java file whitespace blank-line
How can you automatically remove trailing whitespace in vim

I am getting 'trailing whitespace' errors trying to commit some files in git. I want to remove these trailing whitespace …

vim automation whitespace removing-whitespace
Remove whitespace in Python using string.whitespace

Python's string.whitespace is great: >>> string.whitespace '\t\n\x0b\x0c\r ' How …

python string whitespace
c# Fastest way to remove extra white spaces

What is the fastest way to replace extra white spaces to one white space? e.g. from foo bar to …

c# string replace whitespace removing-whitespace