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,177
questions
0
votes
0
answers
18
views
Golang: Automatic whitespace/newline trimming by html/template library
So, I'm building my first web app, it is basically just word to an ASCII-ART converter. I started with simple displaying of my ascii-art result to the html page by standard html/template library. ...
-1
votes
2
answers
51
views
How to write a Java program to include whitespaces at the beginning of a string that we want to reverse?
I want to reverse a string.
input: Computer;
This input contains 4 whitespaces in the beginning of the word 'computer'.I want to include these 4 whitespaces in the beginning of the reversed string ...
0
votes
1
answer
45
views
dynamic search box not accounting for strings containing blank space
I have a dynamic search box filtering a subform based on user input. I also have a few filter buttons that filter the same subform. I set up the search box to incorporate preexisting filters applied ...
0
votes
1
answer
21
views
the text doesn't break into a paragraph [duplicate]
simply: why this happens?
when I have a text with no space , like a url link, the line continues outer the text area.
image
apparently this is what happens in similar situations, but how to prevent it?...
0
votes
0
answers
25
views
removing whitespaces from the beginning of the string using while loop [duplicate]
i did something. when i go through this algorithm on a paper, it makes sense... where am i wrong? i can't use trim method because the task is to use a while loop
i know i'm kinda stupid 'cause i can't ...
1
vote
0
answers
69
views
how can I prevent matching an all-whitespace line inside brackets with perl regex?
I want my regex to match the contents of a pair of curly brackets, aka curly braces,
subject to two restrictions.
Restriction 1:
The contents are allowed to contain inner pairs of curly brackets, but ...
0
votes
0
answers
10
views
XMLHttpRequest response appends whitespaces
I have simple JS code which send GET request using XMLHttpRequst object to test.aspx.
JS code:
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', 'test.aspx', false);
xmlhttp.send('');
if (...
2
votes
1
answer
55
views
I have problem with reading input with blank spaces
I made this function to get input:
void entrada_dados(Time* time, int i){
scanf("%s %d %d", time[i].nome, &time[i].gols_marcados, &time[i].gols_sofridos);
};
The input is in ...
0
votes
1
answer
22
views
Black space under action bar
I'm trying my to learn basic app design and already made some simple stuff.
Now I'm getting stuck on the following.
How to get rid of this blank space underneath the action bar?
I've tried to hide ...
0
votes
0
answers
14
views
Too much white space around subplots in 3d projection
I cannot figure out how to reduce the margins around the subplots in the case of 3d projection. I tried subplots_adjust but it does not seem to be working. Any ideas? Thanks.
fig, axes = plt.subplots(...
0
votes
2
answers
22
views
How to add whitespace when appending values extracted from txt file in python
In a text file I have two columns of value (x and y)
The file was read and it was split using space and appended in x and y.
but while appending x values, it is continuous without any space.
How to ...
0
votes
0
answers
19
views
What prettier setting do I need to prevent line space removal before an anonymous function?
Looking for a way in my .prettierrc file to prevent line space removal before an anonymous function, example before save:
export const a = file => {}
export const b = file => {}
;(async () =&...
0
votes
1
answer
31
views
how to remove the gridView extra space it give between widgets - Flutter
i am working on this flutter app where i need to show the children in a grid view, so i used a column widget in side GridView.builder like shown below, i want to remove the sapcing where its marked in ...
0
votes
0
answers
27
views
LaTeX - enumerated list problem with white space in table
I have a problem with LaTeX. Namely, I have a table and in it an ordered list. I have only the [align=left] attribute added and I have a blank white unfilled field before the first element. I don't ...
-1
votes
0
answers
30
views
how to remove whitespace right before /> in XML file in C# [duplicate]
I have this XML file:
<xades:SignedProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Id="xadesSignedProperties">
<xades:SignedSignatureProperties>
&...
1
vote
1
answer
21
views
PyQt5: Avoid reducing multiple spaces in QLabel / QPlainTextEdit
In PyQt5, both QLabel and QPlainTextEdit Widgets appear to shrink multiple whitespaces in to one. Say if I set the label text to: "abc abc abc", text shown is "abc abc abc".
...
3
votes
2
answers
71
views
How can I remove in Python "-" from spaces and keep them between words?
I have a string with different words in Python. The string is connected with a "-" between the words and the spaces, as shown in the example below.
asiatische-Gerichte----wuerzige-Gerichte---...
0
votes
0
answers
8
views
Chart JS remove whitespace in right
enter image description here
Chart JS remove whitespace in right as at this image
-1
votes
2
answers
27
views
My react app has tiny space at the corner
I've added an image for my background, but there is tiny space at the corner (Please see the pic I attached).
I applied the below code for this.
My other website doesn't show like this.
How can I ...
0
votes
2
answers
33
views
Why whitespace and empty string is same at mariadb?
As you know, whitespace and empty string is definitly diffrent each other.
BUT mariadb returns true at below code.
SET @whitespace = ' '
SET @emptyStr = '';
SELECT @whitespace, @emptyStr; # ' ', ''...
0
votes
0
answers
31
views
PHPSpreadsheet: Putting/Showing multiple spaces (whitespace/indentation) in a cell
I'm using \PhpOffice\PhpSpreadsheet\Reader\Html() to read an HTML table to save into an XLSX spreadsheet. I need indentation on some rows, for example it should appear like this:
Cost of Sales
...
0
votes
0
answers
18
views
How to make oledb update sql statement for excel where column name use white space C#
How to update excel where the column name contain whitespace
this is the code
OleDbConnection Wn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + PPath + ";...
-1
votes
3
answers
63
views
How to move a white space in a string?
I need to move a whitespace in a string one position to the right.
This is my code:
for i in range(0,len(resultaat)):
if resultaat[i] == " ":
string = resultaat[:i] + resultaat[i+...
2
votes
2
answers
65
views
How can ı replace the whitespace to random number in string
I am trying to change whitespaces to random number and number must be between the (0,9) in phyton ex. "hello world" to "hello6world" or "ı am the king" to "...
1
vote
2
answers
77
views
C text formatter characters count is off
So I have an assignment to format text according to rules and eventually print out the number of characters in the string (including \n and spaces, anything but the \0 at the end of the string).
...
0
votes
0
answers
43
views
Is there a way to assert that user never sends empty text
I have a textfield, and i save the value to a variable called message message is a nullable field String? message; as usual, because it can be null before user enters text right?.. however when ...
0
votes
1
answer
33
views
Change size of whitespace tab arrow character in VS Code
I am currently setting up VS Code on a new computer and want to maintain all the same configuration, addons etc that I had on my previous computer. I was able to copy all of the settings, fonts, ...
1
vote
1
answer
27
views
Difference between " %[^\n]%*c" and " %[^\n]" for consecutive scanf in C
I've been trying to scanf multiple consecutive strings.
I know you have to eliminate the newline character and i've also been told that "%[^\n]%*c" is the RIGHT way.
But in my tests, " ...
-2
votes
2
answers
46
views
How can I resolve this whitespace issue in my recurssion question
LAB: Drawing a right side up triangle
Write a recursive function called draw_triangle() that outputs lines of * to form a right side up isosceles triangle. Function draw_triangle() has one parameter, ...
0
votes
0
answers
8
views
Boxes in the place of white spaces in the java console
console When I try to run my program, it appears mini boxes in the place of white spaces.
Anyone knows how to solve this problem?
Thank you
0
votes
1
answer
27
views
how to replace only the first whitespace in string with a dash with regexreplace in google sheets?
Trying to replace:
"abcd efgh ijkl" with "abcd-efgh ijkl"
in google sheets.
I tried:
=REGEXREPLACE(C5,"(?:[A-Za-z]+)(\s)","\-$1")
but it doesn't work. I think ...
0
votes
2
answers
16
views
Adding whitespace in Java zyBooks
Here's what I have right now:
import java.util.Scanner;
public class Welcome {
public static void main(String[] args) {
// Complete this statement to create a new instance of Scanner passing ...
-2
votes
4
answers
64
views
HTML - random whitespace [duplicate]
I am creating a website in HTML and everything went well until something weird happened to my code. When I place 2 button side by side, a random horizontal line becomes visible. When I click on the ...
0
votes
1
answer
75
views
Remove special characters from string except dot - PHP
I am using phpseclib SSH command to delete uploaded file in server. The file names with spaces are difficult to delete. So I am trying to remove spaces for filenames before upload.
I have used $...
-1
votes
1
answer
9
views
Which whiteSpace option to use for long links?
I have this page: https://tikex.com/hu/buyTicket/elektik-tourist-2022
In mobile the last Google link is not broken, so it stretch over the page. I use pre-wrap but I do not know which other I hsould ...
0
votes
2
answers
75
views
Mysql TRIM/RTRIM/REPLACE doesn't work to remove trailing spaces from an email column
I have this insert select statement, copying data from employee bulk add staging to employee table:
INSERT INTO employee (tr_email)
SELECT TRIM(eb.tr_email)
FROM employee_bulkadd_staging eb
ON ...
1
vote
3
answers
48
views
Create list with value from different dynamic sheets in Google Sheets
I have a list of values in three diferent sheets that are dynamic in column A, I have to put merge the three of them into a main sheet big list.
In the image the color squares are the diferent sheets ...
1
vote
1
answer
58
views
How do I deal with multiple spaces in a VBA string?
I am extracting words from a string in an Excel cell to a collection so that I can split to multiple columns. Some of the words have multiple spaces between them. Where this is the case I want to ...
0
votes
1
answer
83
views
Do information separators constitute line-breaks in Unicode?
This Wikipedia article which lists all Unicode whitespaces mentions 7 of them as line/paragraph separating characters (LF, VT, FF, CR, NEL, LS, PS). Here there is nothing given about ASCII '...
2
votes
1
answer
72
views
pylint not generating messages for C0326 whitepace violations
pylint is not producing the expected convention warning messages for whitespace non-conformances.
python 3.6.8
pylint 2.13.5
using this test script :
from __future__ import print_function
import os, ...
0
votes
2
answers
239
views
What's the ideal way to trim extra spaces from a string?
I'm dealing with strings where I need to replace multiple spaces with just a single space . It looks like most of these are just human error, but am curious on the ideal way to handle this -- ...
0
votes
1
answer
35
views
Use emacs To Process Code From Command Line
Is it possible to filter content from source files using emacs from command line. For instance, if you want to use emacs to filter out comments from code, can this be done just from command line?
My ...
0
votes
0
answers
117
views
Interpreting hex value in pyspark
I was querying values from two tables, which were joined, to find out the reason for mismatch in pyspark.
Joining columns from the tables seems to have extra space in one column.
I tried trim ...
-1
votes
5
answers
54
views
Removing spaces from multiple string items in a list in python
I have a list of string items in python:
positions = ['CF', 'LCMF', 'RW', 'AMF', 'LW', ' RAMF', ' LCMF', ' AMF', ' RB']
I want to remove the spaces from the items which contain spaces (e.g. ' RAMF').
...
0
votes
0
answers
45
views
Removing white space in column values of SQL o/p
Not able to remove white space from SQL query output used in pyspark code.
I tried, trim,ltrim,rtrim,replace (multiple nested also) and regex replace. Any other suggestion.
When trim was used in sql ...
0
votes
0
answers
29
views
Pyspark code giving wierd whitespace error
When I ran this query, zip code is getting some hidden whitespace which pushes over to data-source column. Tried trim function and trim with carriage return, whitespace is not getting removed. Any ...
-1
votes
1
answer
29
views
Html character misalignment while padding with whitesapce
I'm trying to show an alignment of some protein subsequences in a simple HTML document
printing the characters in constant width Courier typeface .
However left padding with space ' ' is ...
1
vote
1
answer
47
views
How to keep XSLT from introducing whitespaces in HTML output
I am generating HTML from XML sources using XSLT. The HTML shows a lot of whitespace that was not in the original XML files. Normally this is not a problem as the browser will ignore the extra ...
1
vote
2
answers
49
views
Breaking a div without content into a new line (no text)
I am taking typed characters from input and depending what it is styling them differently and rendering in a container with different colour and shape.
This what I am trying to achieve is when user ...
0
votes
0
answers
21
views
Big white spacing can't remove or fixed with bootstrap
After I finished my code I found big white spacing and can't remove it if i added items to the cart the space get smaller but i want the footer at the bottom but when i use bootstrap class fixed-...