whitespace
Converting XML to plain text – how should I ignore/handle whitespace in the XSLT?
There are three reasons for getting unwanted whitespace in the result of an XSLT transformation: whitespace that comes from between nodes in the source document whitespace that comes from within nodes in the source document whitespace that comes from the stylesheet I’m going to talk about all three because it can be hard to tell … Read more
How does \v differ from \x0b or \x0c?
\v is \x0b: >>> ‘\v’ ‘\x0b’ but the string literal representation in Python is using the \x0b notation instead. The Python string literal representation only ever uses \n, \r and \t, everything else that is not a printable ASCII character is represented using the \xhh notation instead. \x0c is a form feed; it forces a … Read more
grep: match all characters up to (not including) first blank space
You are putting quantifier * at the wrong place. Try instead this: – grep ‘^[^\s]*’ text1.txt > text2.txt or, even better: – grep ‘^\S*’ text1.txt > text2.txt \S means match non-whitespace character. And anchor ^ is used to match at the beginning of the line.
Show whitespace characters in gvim
Check out listchars and list options in Vim. An example use of this feature: ” part of ~/.vimrc ” highlight tabs and trailing spaces set listchars=tab:>-,trail:- set list
Responsive website on iPhone – unwanted white space on rotate from landscape to portrait
Fixed it! The issue was coming from one particular div – to find it, it was a process of deleting the different elements until the issue went away. To fix it I needed to add overflow-x: hidden to that div and it sorts it out! Hope this is useful to others with a similar issue.
How can you combine git add patch -p mode with diff’s ignore-all-space
Here’s an adaptation from a related question. git diff -w –no-color | git apply –cached –ignore-whitespace It has the benefit that you don’t need to use stash, temporary files, or perform a reset –hard on your working folders. Addendum The solution above only stages changes except whitespace-only edits. This did not address patch, though using … Read more
Why does git care about trailing whitespace in my files?
It is because one of the very common uses for Git is sending patch series via email. Trailing spaces cause trouble in email, and are thus usually stripped out, which means any trailing spaces will be lost in the process of sending the patch via email and applying it. This in turn means that if … Read more
How can I ignore eol changes and all white space in svn?
The svn command seems to honour only one -x option. This means, you must/can combine all options into one argument: svn diff -x “-w –ignore-eol-style” I did not test whether this is also true for external diff-tools.
Changing the color of the whitespace indicator in Visual Studio?
You can do that in Tools / Options and then Environment / Fonts And Colors and there is a setting for visible White Space :