Questions tagged [whitespace]
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.
4,351
questions
0
votes
0
answers
7
views
How to ignore whitespace in variable used in a batch FOR loop
FOR /F %A in (Copias_Nomes.txt) DO copy Master.pbix %A.pbix
This command copies the Master.pbix and renames it according to the lines in the Copias_Nomes.txt file.
The problem is that those lines have ...
0
votes
1
answer
25
views
How to configure Apache's Xalan-Transformer to not create empty lines? [duplicate]
I use a Xalan transformer to format xml files with indentation. However, when I apply the formatter to an xml file that already contains indentation, it creates lots of empty lines.
E.g. the input
<...
0
votes
0
answers
7
views
Responsive WhiteSpace Issue in Next.js Projects
My website large screen is ok but when i try to create responsive my website with inspecting. i faced the problem that is half screen showing and half is whiteSpace. where is screen issue
I know that ...
1
vote
1
answer
58
views
Can I force Django to load images with space in the filename?
I have a folder with image files. Unfortunately, some files contain a space in their name. Django is able to load these images if I run the app on the development server (via python manage.py ...
0
votes
0
answers
45
views
Powershell adds trailing white space when writing string with new-line-code to textfile
I'm on WINDOWS 10, using POWERSHELL 7.x.
I want to write to an argsfile (simple text-file), that controls EXIFTOOL-operations. Each EXIFTOOL-command has to be placed in a separate line. Writing the ...
0
votes
0
answers
32
views
Vue3 - elements look like out of html, white space which can't remove
enter image description hereI am learning VUE framework. I've created view routes and components like nav and footer in 'components' folder. I've tried to inject them to app.vue with and without ...
1
vote
3
answers
153
views
How to reverse an array's values and input them into another array?
I am trying to create a code in which the person inputs a number N between 1 to 100, so they can input N amount of words-phrases up to 20 characters. The program then finds out if the said word or ...
0
votes
0
answers
13
views
My keyboard tab and spacebar button both are not working properly in vs code
I've faced this problem recently, when I press tab or spacebar button in vscode it doesn't add whitespace rather than it just blinking and not working properly.
My keyboard is alright I've checked all ...
-1
votes
2
answers
74
views
Force empty <span> to next line when wrapping occurs
The following snippet generates for me this result:
(The borders are just a quick way to easily show all the elements, including the <span>s containing the space as well as the empty <span&...
0
votes
0
answers
57
views
Sphinx multiple spaces in text
I want to insert multiple spaces into some text in a Sphinx document. The text appears in the value portion of a definition list entry. Here is a sample of working text. I want to replace the - with ...
0
votes
0
answers
19
views
\n Does not work in html5-canvas ctx.fillText() [duplicate]
ctx.fillText("Hello\nWorld", 300, 300);
This is supposed to show World below Hello but when used it is being displayed as Hello World
How do I make it work correctly?
-1
votes
1
answer
64
views
Replacing more than one whitespace within a textfile (VBS) [duplicate]
I have a problem with a simlar textfile by replacing chars, who are very often in the file (multiple appearence), especially whitespaces.
When I use this script
set fso = CreateObject("Scripting....
0
votes
2
answers
102
views
Regex to remove not repeated spaces
I fetch name information from a PDF in python with fitz.
Problem is, most of the informations have spaces to match the background, which give me for example : firstname = "P I E R R E" and ...
0
votes
1
answer
29
views
Spaces getting removed while typing inside a bb-rich-text-editor in Firefox
I got this issue while trying to type inside a bb-rich-text-editor in Firefox. Whenever I click the spacebar key, I see a space being added, but soon as I type in, the previous space gets cleared.
If ...
0
votes
0
answers
18
views
Unwanted white space at page header when clicking on the INPUT - Safari on Iphone
Reproducing the error on google's website:
When the input is first clicked, nothing happens and everything is normal:
When I focus on the input and the keyboard appears and then press away to lose ...
0
votes
1
answer
27
views
How do I add a percentage symbol at the emd of my output with no whitespace?
My output on an assignment is correct except for the whitespace at the end of my output before the percent symbol.
My output :
Your final grade is 86.75 %
Expected output (zybooks):
Your final ...
0
votes
1
answer
51
views
Using find to process folder names (containing whitespace and ') for a bash script fails
Using bash version 5.*
I created a script that creates a script that will play video and/or audio files in the given folder, the created playing-multimedia-files script using this function
ffprobe -...
-1
votes
2
answers
49
views
How to identify rows that are having white spaces after a full patient name in SAP HANA
Please provide the code to identify white spaces after a full patient name in SAP HANA
E.g:
Abb qwerty wert
As u can see the above scenario there is white space after patient name. The white space ...
0
votes
1
answer
38
views
How to make Emacs recognize sentences after a set of parentheses/brackets?
I am trying to use Emacs's sentence-end functionality to navigate around a file with citations (and double-spaces between sentences), and I'm having some trouble trying to get Emacs to recognize ...
0
votes
2
answers
47
views
Why there is a gap between the elements, without a gap command
I'm doing my second project in HTML and CSS and I'm losing my mind trying to figure out why there is a spacing where it shouldn't. It is so specific I don't even know how to search for it.
Basically I ...
-2
votes
1
answer
69
views
Checking whether a character in a string is a space does not work
I need to add two zeroes before each part with 6 numbers in a string without deleting the spaces between these parts. Here's the code:
#include <iostream>
#include <string>
using namespace ...
0
votes
0
answers
28
views
How to prevent xmllint from removing whitespaces?
Following from this questions, I am now able to update a specific variable in a number of XMLs.
However, they all have a lot (unnecessary) whitespaces and xmllint removes them all. I now have 50 lines ...
3
votes
2
answers
107
views
Rust proc_macro and syn: parse whitespace
I'm trying to write a proc macro block! that parses syntax vaguely resembling jsx/rsx using syn crate.
The following should be parsed into a block "wrapper" with two children blocks "...
1
vote
1
answer
42
views
For an expression need to remove space between the operators alone
I have an expression and i need to remove space between the operators.
For example
rule_expr = ( 'name' in ( "abc","bcd" )) and ( 'age' < = 60 ).
Here I need to remove space ...
-4
votes
1
answer
44
views
Having a whitespace issue in Python3 coding class
I am outputting the right code, but I am making a mistake in the whitespace after the last colon, and also between "Houston and Texas"
Trying to output the output given in picture. ...
0
votes
0
answers
40
views
White space occurs with zoom in
I'm recloning Netflix's Sign In page, but I've noticed that when I zoom in excessively, unexpected white space emerges at the bottom of the background image. This white space becomes more pronounced ...
0
votes
0
answers
48
views
Translate function to replace the spaces in between the special character in xml in xslt 2.0
Input XML
<?xml version="1.0" encoding="utf-8" ?>
<section>
<Notes>~ CB:C86100011~ NAME:THINKPAD LAPTOP 10~ PART_DESCRIPTION:FD85 FLOOR DRY 25-LB POLY BAG WITH ...
0
votes
2
answers
110
views
In R: Unicode Character 'ZERO WIDTH SPACE' (U+200B)
In R, is it possible to use Unicode Character 'ZERO WIDTH SPACE' (U+200B)?
It does not get output when it gets included into a string:
> "x\u00B1y"
[1] "x±y"
> "x\...
2
votes
1
answer
56
views
Email clients are putting single space characters in HTML emails
I am sending HTML emails using the PHP mail function and have found that email clients are inserting single space characters at regular intervals. This is inconvenient when part of the email is a url....
0
votes
1
answer
70
views
Remove horizontal whitespaces from HTML tree
I just need to automatically remove the unnecessary horizontal whitespace between nodes like the three last grand children from this tree:
* {
margin: 0;
padding: 0;
}
.tree ul {
padding-...
2
votes
2
answers
277
views
Split string once on the first whitespace in Rust
I have a string, say "dog cat fish", that I want to split on the first whitespace into two slices that look like this: ("dog", "cat fish").
I tried to naively use the ...
-1
votes
4
answers
158
views
Replacing spaces for TAB with (or without) arrays
I tried to follow some advice and started reading C programming language book.
In the book there are several exercise and end of each chapter.
I've just did the following exercise:
Write a program ...
0
votes
1
answer
19
views
Why is my hyperlinked text in another line?
output$abstractText <- renderUI({
tags$div(
HTML(
paste("",
"<span style='font-size: 30px; "Text",
"",
"...
0
votes
1
answer
55
views
ANTLR4: Need assistance with conditional handling of whitespace within grammar files
I am new to ANTLR, but have composed a largely-functional (4.13.0) parser/lexer for a particular access control syntax.
Introduction
Just for context, the end goal for this grammar implementation is ...
2
votes
2
answers
89
views
How to add multiple whitespaces in JSX?
I am using React/JSX, I want to add multiple whitespaces depending on a condition, here is the element <h1>HELLO WORLD</h1>, I want to achieve effect like this in the broswer
HELLO ...
0
votes
0
answers
8
views
A white line appeared above my header and it won't go away
On my wordpress site, i played a little bit with the header and IDK for what reason, this white dash/line appeared above my header (the one i marked with purple arrows). It is bugging me for a while ...
0
votes
0
answers
54
views
How to remove unwanted whitespace on the left and right of a text
With a very large font-size (600 px) you get unwanted whitespace on the side of the text. This makes it hard to precisely align the text with the rest of the content. See screenshots:
example one
...
0
votes
1
answer
105
views
customize " *" (space + asterisk) in the required fields for angular material 13+
Adding an asterisk is the new default behavior in the form fields for Angular Material v13.
However, if you look up carefully, there is a space before the asterisk. On the page it renders (slightly ...
0
votes
0
answers
29
views
How do I erase too much space from the homepage of my code
When I run my code the spacing is too much in the actual code , just like writing an actual note and giving a long spacious paragraph thats how it seems in my code .Don't know if it's the previous ...
0
votes
2
answers
54
views
Trying to find how many spaces in string
I'm trying to find how many spaces(blank strings) are in the sentence[100].
#include<stdio.h>
#include<string.h>
int main(void){
char sentence[100];
int count=0;
scanf(&...
0
votes
2
answers
79
views
Why is scanf() ignoring the part after the space in this program to reverse a string?
#include <stdio.h>
#include <string.h>
main() {
int i;
char given[30];
char reversed[30];
printf("enter your stringn");
scanf("%s", given);
...
0
votes
1
answer
34
views
How to remove spaces between span elements within code element?
I want to show JSX code example. I use following code:
In HTML I use div>pre>code>span tags for formatting each individual element, for showing syntax.
<div class="highlight">
...
-2
votes
1
answer
54
views
How to use a variable in Javascript as string and variable?
Is there a way to take a variable and use it as an input for the localStorage, then edit it to remove the spaces? What I have been trying to do is set a variable to the value of the local storage, ...
0
votes
2
answers
73
views
Is there a Unicode space char that consumes "physical" horizontal space at the start of a line but does NOT signify a "logical" indent to Python?
Motivation. I recently published an introductory programming textbook that follows a language-agnostic approach. Although the notation I use is a tiny subset of Java, the book's conceit is that it is ...
0
votes
3
answers
44
views
Flex Box Whitespace Issue (Right Side)
I'm having some issues making this flex box span 100% of the width of the page.
https://jsfiddle.net/yfhbuwc3/
<html></html>
On the right hand side is whitespace (I have no idea where ...
1
vote
1
answer
57
views
Problem with reading characters into an array one by one (C)
I'm trying to read a collection of characters, typed one after another (with spaces) and save them all in an array. For example, the input "a b c d e f" would be kept as "abcdef" ...
2
votes
1
answer
42
views
New line character causing words to break up during text cleaning
I am trying to clean some text for further use using Python. Below is an example input text:
have agreed in-\nsured as\nan per-\nson in\nwriting in a contract or agreement
Now I want the output to be:
...
1
vote
1
answer
51
views
git clone - Issue with whitspace within URL
I am having issues using git clone with repositories that have whitespace in their names.
For example, my project name in AzureDevOps is: "TestProject - Test" and the URL to clone my git ...
1
vote
1
answer
90
views
How to remove additional spacing between the quotes in a list of values?
How do I remove the additional spacing from the left and right side of each value between the quotation marks?
This is a shorter version of a much longer list. Some values have additional spacing in ...
0
votes
1
answer
43
views
PHP read white space in file [duplicate]
I have a file that looks like:
I int result = 2 * n;
result = result + 1;
II int result = n + 1;
result = result * 2;
III int result = (n + 1) * 2;
I read and write ...