Questions tagged [whitespace]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
2answers
917 views

How to remove strange space symbols in Word

I got Word files from one guy, written in Russian and convert them to HTML. These files contain some strange white-space characters, for example: This looks like small zero (I changed mode to show ...
0
votes
2answers
260 views

Replace leading tabs and spaces with sed

I want to replace leading tabs and spaces with something like <TAB> and <SPACE> respectively. But I couldn't figure out how to do it in a single pass of sed because tabs and spaces in the ...
1
vote
0answers
12 views

How can I prevent trailing whitespace being trimmed when importing a file into MemoQ 8.4?

When importing files into the translation tool "MemoQ (8.4)" in the project manager role, I've found that trailing whitespace in the source data, is trimmed. While this is re-added to the source when ...
0
votes
0answers
50 views

Escaping spaces in server_args of xinetd.conf

I am trying to expose a small java program to the network for demo purposes. I use the xinetd configuration and create a service, and can get everything to work. Except when there is a space in the ...
1
vote
3answers
8k views

Too large spacing between words in word

I got too large spacing between words in word. What may be wrong in the case? I tried this and it did not help.
2
votes
0answers
81 views

Can I display whitespace characters in iTerm2

In most text editors I can display whitespace characters, e.g. tabs as arrows ⟶ , spaces as middle dots · Is it possible to do this in iTerm2?
1
vote
1answer
43 views

MatLab: Line break between arguments of a function

When writing a function with arguments in MatLab, can the arguments be separated by a line break in some way (similar to separation by whitespace characters such as space or tab being allowed)? An ...
0
votes
1answer
473 views

Split .png into multi-page pdf with imagemagick based on whitespace

Currently I have a hand written image darkened with convert -level 50x100% It contains chunks of text separated by whitespace. Simply printing the image would split handwriting in half. Is there a ...
1
vote
1answer
237 views

Highlight nbsp \xA0 in vim

I have some patterns in my vimrc to match weird characters in files such as tabs, curly quotes, em-dashes, etc. " Highlight various difficult-to-see problems :match Error / \t/ :match Error /–/ ... ...
7
votes
2answers
2k views

Unexpected duplicate directory names after expanding `%~dp0` in a BAT file

I'm on Windows 10 Enterprise x64. I have the following hierarchy of directories with a BAT file at the innermost level: C:\ dir\ my files\ run.bat The BAT file contains the following ...
1
vote
0answers
236 views

Spaces between equations and Chinese characters in Microsoft Word

I am using Microsoft Word 2007. If I insert an equation by pressing Alt+= key inside some Chinese document, there will be no space between the equation and Chinese characters. This looks too crowded(...
0
votes
1answer
73 views

pad string with spaces

I cannot figure out how to add spaces before or after a string, and then store the padded string in a variable. Printing to console works fine, but when I try to assign the result of the printf to a ...
0
votes
0answers
18 views

Win2012 - Background Application Whitespace CORRUPTION?

This is a really odd one: Could I ask any experienced Windows developers to please look at these screencaps, and advise if they've ever seen anything like this before: corrupted background whitespace, ...
0
votes
1answer
208 views

Remove spacing before tab in Microsoft Word

I want to get rid of the red marked spacing in the following demonstration: Word is placing a small amount of spacing before a tab I place at the start of a line. While this may not be very ...
1
vote
2answers
915 views

Underscore appears instead of space when typed in Notepad++

When I type space in Notepad++, an underscore appears. Can you help me with this issue?
2
votes
1answer
900 views

Spaces between parameters in a Powershell command

I want to know why when I let spaces between paramters in a powershell command I have errors : With space : (don't work) wmic desktopmonitor get screenwidth, screenheight Expression GET non valide. ...
2
votes
0answers
32 views

Any way to remove whitespace from dropdown menus in Windows 8.1/2012 R2?

I've recently transitioned from Windows 7 to a Windows 8.1 environment. In doing so, I've noticed a lot of little UI changes that I didn't anticipate. Most have actually ended up being helpful. One ...
2
votes
1answer
2k views

Remove any leading spaces (not including tabs)

I'm trying to remove leading spaces in vim but not touch tabs. For instance, if each of the lines below have a leading tab, but b_line has an additional two spaces, how can I just remove those two ...
4
votes
1answer
2k views

Windows Batch. Append to PATH Environment Variable, when It Contains Spaces

I want to add some binaries to path for my console session and I'm doing it like so if not defined WIXTOOLKIT_IN_PATH ( set WIXTOOLKIT_IN_PATH=1 set MY_PATH=%~dp0..\tools\wix SET PATH=%...
5
votes
2answers
36k views

Replace any number of spaces using regular expressions

How can I replace any number of consecutive spaces, with, for example, a tab in a text editor supporting regular expressions (like Notepad++) To clarify: Replacing every occurrence of one or more ...
15
votes
6answers
9k views

Difference in whitespace between two files on Linux

I have two files that when I compare with diff show that every line has changed. When I compare them with diff -w (ignoring whitespace) it shows the few minimal changes that I expect. Obviously ...
10
votes
3answers
13k views

Improve display of whitespace on notepad++

Can you improve the visibility of whitespace using notepad++? I tried Settings > Style > Whitespace Symbol, and am able to change the color as needed, but I still find the symbols incredibly small ...
1
vote
0answers
211 views

How to stop sublime text from adding a new extra line at the end?

I'm on OS X and using Sublime Text 3 and it's adding a newline at the end of document after I press CMD+S, which I don't want. I have already added below line in Sublime Text user settings: "...
1
vote
1answer
956 views

Notepad++: is there a way to force it to keep the autoindented-whitespace type?

I wonder if we can force notepad++ to respect the previous whitespace character when it autoindents a new line: list[CR][LF] ····item1[CR][LF] ····item2[CR][LF] --->| (notepadd++ screenshot ...
1
vote
2answers
412 views

Adding an abbreviation for spaces in vim

I am trying to add the following abbreviation in vim, but its not working. noreabbrev <space><space> .<space> Its just like in most modern phones keypad. so can someone tell ...
1
vote
1answer
2k views

Show whitespace characters in printout

I need to render an ASCII file for printing in a way that removes ambiguity if (very unlikely) one decides to type it in and validate the signatures. I am giving the 8-bit symbol-set QR code as an ...
0
votes
1answer
387 views

Don't show tabs in Emacs whitespace mode

Normally, I use spaces for indentation, but for a specific project I'm working on the convention is tabs for indentation. So I've made a .dir-locals.el file that looks like this: ((nil . ((indent-...
7
votes
1answer
42k views

Word 2013 not changing footer size

I'm trying to make the space at the bottom of the page smaller so I can fit more text into it. I tried setting the footer and header to really small numbers but it doesn't seem to make a difference. ...
0
votes
1answer
214 views

Remove whitespaces from my merged batch file

I'm trying to merge multiple text files into one single file. The problem with the command below is that it creates several whitespaces in the final merged file content and can't have any spaces. How ...
66
votes
10answers
123k views

How do I automatically trim trailing whitespace with Notepad++?

I don't want to delete the empty lines completely, but I want to remove the trailing tabs and whitespaces in them. Eclipse usually does it (through a preference setting) when we save the file. For ...
0
votes
2answers
775 views

Spaces in the beginning of lines in Notepad++

Is there any reason, why Notepad++ treats spaces as an average characters and thus pushes it to a new line, instead of "hiding" them at the end of line (when line-breaking mode is of course turned on)?...
0
votes
1answer
474 views

Autohotkey for Press Space equest to Mouse Down

I've created a SpaceBar button to MouseClick but I'm having difficulties mapping SpaceBar Press state into Mouse Down using AHK. Anyone has the script? Below my current Space Mouse Click script #...
0
votes
1answer
123 views

How to sort with spaces in Excel?

How do I sort with spaces? I have spaces between my numbers and dates and names and would like to sort them without using a VBA formula.
5
votes
2answers
331 views

How can I avoid wasted space on Google searches on large monitors?

There is a lot of wasted space in Google searches (in Chrome) on my 23" monitor (1920x1080 resolution): (click image to enlarge) As you can see, less than 1/3 of the full screen width is actually ...
2
votes
2answers
4k views

Word 2010: unsolicited white space [closed]

I'm using Office Word 2010 on a Windows 7 (64 bit) OS. I've got a large document with multiple tables and images (some of which are grouped). I've managed to lock each table or image into the ...
3
votes
2answers
3k views

Showing some whitespace chars, but not all, in vim?

I'm using the set list and set listchars options in vim. I'd like to customize set listchars to display trailing spaces, etc., but not tabs. Is it possible to specify that I don't want a particular ...
45
votes
4answers
26k views

How to insert tab character in Text mode?

I have tried to parse a file language_data.txt, which is edited by Emacs. The different columns are separated by tab characters. But when I opened the file, I found that each of the tab characters ...
5
votes
2answers
2k views

How to avoid trailing spaces when you copy something from terminal?

I often copy a code snippet from a SSH terminal session where i'm logged in to some remote server and have a file opened in vim, for example to paste it here into an answer at SO. It frequently ...
2
votes
2answers
2k views

Can not stat over a file name having space in it

I m very new to shell scripting and writing a script for a project. I am having a problem while doing "stat" on a file name, to check size, which has spaces in it. The problem is that I can not write ...
2
votes
0answers
2k views

How can I specify an /EXCLUDE file with spaces in it to xcopy?

I have tried to specify an /EXCLUDE filename with spaces in it to xcopy, but it always chokes. How can I specify such a path to xcopy without copying the /EXCLUDE files into the current directory and ...
7
votes
2answers
3k views

Trim trailing newline in one-liner bash alias

I'm trying to write a simple alias on my Mac OS X terminal to copy the current working directory. I have this: alias cpwd="echo \`pwd\` | pbcopy; echo \"Copied \`pwd\`\"" Then I can just run the ...
2
votes
1answer
1k views

Vim, listchars not displaying tabs at the begin of the line

I use listcharsin my .vimrcto see the whitespace. My current setting is : set list listchars=nbsp:¤,tab:>-,trail:¤,extends:>,precedes:< And that give to me, for example this : >---Foo ...
21
votes
4answers
79k views

How to start/open a file/folder that contains space in its name through command-line?

I'm trying to use the start command in the command prompt to open files and folders, but I'm unable to open files and folders that contain space(s) in their name. I have tried the following queries (...
1
vote
1answer
882 views

How to reclaim white space in a converted microsoft word document?

After converting a document from pdf to docx I find that it's very difficult to edit anything without damaging the layout because I can't write over the existing white space. Like for example: {...
0
votes
3answers
2k views

AppleScript: how do I store folders' pathnames into an array, replacing spaces with “\ ”?

I have a folder and inside this folder there's a bunch of subfolders. Using AppleScript I wish to store the pathnames of these subfolders into an array. Here's my problem: each pathname containing " "...
5
votes
2answers
3k views

Modify Sublime Text 2 whitespace representation?

Is there a way to modify the whitespace representation characters so I can change it from dots and dashes to something else? Because I currently have whitespace characters being drawn always, it ...
1
vote
1answer
2k views

How to remove leading whitespace from file and folder names?

How to remove leading whitespace from file and folder names? (I'm running OS X 10.6 Snow Leopard.) As provided below by @Lri I was able to remove trailing whitespace using this: #!/bin/bash IFS=$'\...
0
votes
2answers
960 views

Search recursively for a string containing whitespaces

I want to search for "this table..." string under /home/myuser directory recursively, ie in all files under /home/myuser and in all directories and sub-directories under /home/myuser. /home/myuser ...
3
votes
1answer
637 views

What is the whitespace indicated with a dot in TextMate?

In the screenshot of TextMate below, I turned on "Show Invisibles." What's the whitespace character on the third line? Text I imported from somewhere has these dot spaces, and I'm trying to figure ...
0
votes
1answer
1k views

How to remove trailing whitespace from file extensions and folders snow?

How can I remove trailing whitespace from file extensions and folders in snow leopard ? Ideally I would be able to run a single command within a directory that would search and remove for all files ...