Questions tagged [line-breaks]
Whitespace that forces text layout to continue at the start of the next line.
2,159
questions
0
votes
1
answer
24
views
SVG text and white-space:pre compatibility
This SVG text will be displayed in 2 lines on Firefox, but in just 1 line on Chrome:
document.querySelector("text").textContent = "This is the first line \n This is the second line";
text {
...
0
votes
0
answers
25
views
Powershell export contains breaks and spaces [duplicate]
I'm struggling to get a proper output, without any spaces and breaks. However, it automatically seems to add breaks and spaces. I'm using the code below.
Get-Content U:\Syn.txt | % {get-aduser -server ...
1
vote
0
answers
18
views
Safari selection color on macOS is blue on empty spaces
Observe the two screenshots below, the first in Chrome and the second in Safari. Both browsers latest version as of date of question (Jan 2023).
The page background is the dark grey observed in ...
-1
votes
0
answers
13
views
How can I make a checkbox and a 'details' item tree stary on the same line? HTML
I have a checkbox that will convert to strike-through the text after checked, but I need the text to be an item tree, so far I have accomplished those 2 things, but for the life of me I can't make ...
0
votes
0
answers
11
views
Beanshell Export to CSV. How make a line break within a cell? \n and \r\n not working
I'm new to Beanshell/Java so patience and kindness are appreciated. I'm trying to create a line break within a cell for CSV file (opened in Excel). I tried using \n but that takes me to a new row and \...
0
votes
1
answer
25
views
Dividing lists in Svelte
I had a recent urge to play with reading and formatting a GEDCOM (Genealogy) file and I'm using Svelte to accomplish this. But I'm stuck on a problem I'm not quite sure the best way to do it. ...
1
vote
0
answers
29
views
CSS `overflow-wrap: break-word;` applied to sequence of whitespaces
I struggle to understand what's the expected behavior of overflow-wrap: break-word; when applied to a long sequence of whitespaces, and specifically Ideographic Space (U+3000).
So far I've actually ...
3
votes
0
answers
44
views
Element min-width only if line-break CSS [duplicate]
I'm trying to get a layout where two links next to each other break to their min-width, if and only if there is not enough space for them to display on one line.
Here you can see the elements are ...
-1
votes
0
answers
28
views
Regex Google script - White space and line break [duplicate]
I want to match a value in html file. The regex code is validate by regex101.com but it's not correct with googlescript.
the particularity are the whitespace before and after the match group and the ...
0
votes
1
answer
33
views
how to prevent output wrapping in RMarkdown html_fragment
I have some RMarkdown code that generates html_fragments that are used as the basis of emails. When last run (January 2022) the resulting HTML files (when viewed in a text editor) had each paragraph ...
-2
votes
1
answer
40
views
HTML line break inside a <script> for a function
Within a I create another with a function inside. The function requires a line break so that it is "recognized". If I use <br /> the function is recognized but Javascript gives the ...
1
vote
1
answer
35
views
Regex to Remove Block Comments but Keep Empty Lines?
Is it possible to remove a block comment without removing the line breaks with a regex?
Let's say I have this text:
text = """Keep this /* this has to go
this should go too but leave ...
0
votes
4
answers
55
views
Regular expression to replace double line breaks with HTML paragraphs
I want to convert this string:
Lorem ipsum dolor sit amet.\n\nConsectetur adipiscing elit.\n\nNunc eros enim.
into HTML tags:
<p>Lorem ipsum dolor sit amet.</p><p>Consectetur ...
0
votes
1
answer
26
views
Line breaks VS Page Breaks
I am new to Visual Studio Code, but I understand writing code. I used to use Dreamweaver and it would break code up by page breaks (if the code went beyond your visible screen it would show you the ...
0
votes
1
answer
45
views
Batch file: Where is the phantom line break coming from in this code?
I am trying to append a backslash to the end of a string (a folder name), and instead of getting a backslash, I seem to be getting a line break, 13 spaces, then finally the backslash. Where is this ...
0
votes
1
answer
57
views
SAS sgpanel will center justify a footnote of more than two lines when a legend is present
I am generating a figure using sgpanel with a left justified footnote. The justify=left works when the footnote is either short enough to fit on a single line, or if the plot does not have a legend. ...
0
votes
1
answer
38
views
Linebreak issue in Pine Script Editor, when I paste code
If i paste a few line of pine script code from my windows machine into the editor
I do get always some line break issues
ie
line.new(timestamp('2022-12-08 05:21:00.210') , 22.67, timestamp('2022-12-...
0
votes
0
answers
42
views
Why are BufferedReader and Scanner not identifying line breaks?
I have a program which is reading data from an external testing instrument via a serial port. It uses jSerialComm to communicate over the serial port. The data is line-delimited, so I decided to use a ...
0
votes
2
answers
58
views
Merge words with hyphenation and line breaks (regex)
When a hyphenated word is separated by a line break, I want to merge them. So the condition is that a hyphen is followed by a line break. If a hyphen is followed by a whitespace, nothing at all should ...
0
votes
0
answers
26
views
Adding paragraphs to strings in JSON
I'm trying to add a paragraph to a long text. Already tried using tags like "\n", "\\n" and "\\r", but it's useless. Here's my string:
{
"text": "Lorem ...
0
votes
0
answers
23
views
How to add newline when word does not fit using Grid/FlowLayout - Unity
I am currently creating a cryptogram minigame for my game, and I have a problem in the layout where I need the word to be in the next line when the word does not fit in the line. In the photo below, ...
0
votes
0
answers
49
views
Problem for line breaks (\n) with gtsummary functions
I have a problem trying to include line breaks into arguments of gtsummary functions, as statistic argument of tbl_summary() or update for modify_header(). It's a bit strange because it always have ...
0
votes
2
answers
18
views
Setting text of element with JS ignores \n linebreak?
I want to set a the text of a paragraph element via JS. The string contains line breaks (\n), but they are not visible in the paragraph.
This is the desired result:
<p>
Lorem ipsum dolor ...
0
votes
1
answer
35
views
How to get line breaks in a long text when writing to a pdf using canvas
I am trying to write long texts (captured through string.xml in the $nameSpeech variable) to a pdf using canvas.drawText, but it does not implement any line breaks, and \n and more do not work. Is ...
0
votes
1
answer
31
views
How does mySQL save the new line formatting of text
When saving data from <textarea> elements into mySQL, the data stored in mySQL seems to save the format in which the data was entered.
For example
When the data entered is "Row 1, Row 2, ...
-1
votes
2
answers
46
views
Charindex returns false position in SQL Server 2017
I'm trying to get the charindex for multiple CHAR(10) characters in a string in SQL Server.
The first and second linebreaks are found alright, the 3rd one is a problem however.
CHARINDEX(CHAR(10),...
0
votes
1
answer
22
views
Remove line breaks excluding all before a group of numbers
I have a text file in which I need to remove line breaks, excluding the ones before a group of numbers.
For example, I would like to convert this:
237304||361234295694||360000316633||2021-05-12 18:51:...
0
votes
1
answer
26
views
inplace = True not working along "\ " new character
Trying to run a code in the jupyter notebook:
location.str.split("\n",expand=True)\
.drop(columns = 1, inplace = True)
but failing to get the desired result. Nothing is happennig, not even ...
0
votes
2
answers
55
views
How to get a line break for text pulled randomly from a javascript array const
I'm creating a simple webpage tool for language education that randomly selects a question from a javascript array const, but the longer questions are cut off, especially for mobile. How can I get a ...
0
votes
3
answers
48
views
Line break after every 20th number in Java (for-loop)
I am trying to write a program, which shows numbers 1 to 100. I would like to have a line break after every 20th number. I have tried using a counterloop, which resets itself after every 20th number, ...
-2
votes
1
answer
28
views
Spliting numerical input by linebreak in a textbox, doing some math on it, and outputting results in a new textbox
I'm attempting to create a wpf app that takes a list of numerical values, separated by line breaks, in one textbox. You click a button, and it outputs the new numerical values into a second textbox. I'...
0
votes
1
answer
31
views
How do I get rid of b' if I want to parse a bash output using python?
At my python application I'm doing the following to get some values from a larger JSON
ffgrading_json = exec_command(f'{options["path_ffprobe"]} -loglevel quiet -print_format json -...
0
votes
0
answers
40
views
Avoid linebreak after INCLUDETEXT fields
I am trying to include data from a text file (one text file that only contains a single number)
I am able to include this number in the INCLUDETEXT fiel (so the link work) , but at the creation there ...
0
votes
1
answer
38
views
Line break after printing array's element
So I have this code which checks if an element of array starts with letter Ա/ա, and prints it by adding into a paragraph. But I can not make every word start from a new line.
for (var i = 0; i < ...
1
vote
1
answer
115
views
Ingesting and LINE BREAKING json data to SPLUNK
Looking to ingest this RESTAPI data to SPLUNK, but having issues with LINE BREAKER, can't seem to discover the correct combination for props.conf.
Also as data is returned in array format without keys,...
0
votes
2
answers
162
views
CSS - Newline after dot . of a paragraph
I have span which have a paragraph.
<span>
Please enter valid Number. Blank Spaces are not allowed to this field. Only Letters, Numbers and Special Characters are allowed.
</span>
I need ...
0
votes
0
answers
24
views
Latex divides URL in bibliography and web page cannot be found
I get a wrong URL when I click the link in the bibliography of a PDF generated with Latex. I tried using both url and xurl packages but the error persists.
Here is the code:
@misc{...
1
vote
3
answers
161
views
Can I word-break at a specific character with react native?
I'm using react native to create a category table.
Is there any way I can make the characters(texts) inside the table to line break at after or before a specific character?
for example : apple/banana/...
0
votes
2
answers
165
views
html css how force break text line
As in subject. I want force to break line text like:
entercode&hereentercode&hereentercode&hereentercode&here
and automatically prevent width of column table to be changed by long not ...
0
votes
0
answers
42
views
html css force break text line [duplicate]
As I search many answers I found excellent solution here. All was check.
table {
table-layout: fixed;
width: 100%;
}
div.some_container{
overflow-wrap: anywhere; /* modern ...
0
votes
0
answers
75
views
newline character in JsPDF is not working
I am facing an issue while exporting pdf in JsPDF. Table contains a column which has multiple rows in a cell and it is displayed properly in html with newline (‘\n’) character. But when I export the ...
1
vote
0
answers
68
views
Action not being executed on indented lines of a list
So I am using Python 3 to create a script with Telegram API but have come across a pickle.
Essentially I want anything I post to one channel to automatically be posted to a list of other channels.
As ...
1
vote
1
answer
61
views
Read stdin with line break in C
I am very new to C and I am trying to read a stdin with line breaks. A text file will be used as a stream.
from what I have learned so far, I am trying this (when running the code, < text.txt is ...
1
vote
2
answers
55
views
Force two words to be always together in a line [closed]
I have this line:
Welcome to the nicest home 🚀
This line is inside a flex div width responsive width.
When with is small enough, this happens
Welcome to the
nicest home
🚀
Is there a way with ...
0
votes
2
answers
30
views
How to remove break between two box and three box? [duplicate]
Anyone have any idea how to remove this hole between 2 and 3?
I have no idea about this option. Maybe there is any cover?
Below is an example in the code
.wrapper {
display:flex;
flex-wrap:...
0
votes
2
answers
51
views
Google Sheets table is not showing new lines "\n" correctly in App Script WebApp
I have a simple WebApp for getting a table data in a Spreadsheet.
What's the problem is, I have not getting Line Breaks in WebApp
Actual Data in Spreadsheet
Akash
Bangalore
but getting like this in ...
-1
votes
2
answers
90
views
Want to seperate string every 2 new lines and add it to array
I have .txt file which I convert to string. I want to store every 2 new lines starting from the 1 all the way to the last number.
name.txt file:
imported/names/A
1/name=Arwin
2/Age=22
3/name=AJ
4/Age =...
0
votes
1
answer
72
views
How can I target a specific node?
My setup is below.
It is working, I just have a small issue with it. Currently its checking for child notes that are text (node.nodeType === 3). The problem is, sometimes there are f.e. links or the ...
1
vote
1
answer
94
views
Line break within Paragraph in Vaadin23
I need to place an Article object on my page, that I am creating with Vaadin 23.
The article will contain several paragraphs, each one need to be in 3-4 lines of text.
I have:
Paragraph p1 = new ...
1
vote
4
answers
242
views
Check for line breaks in paragraph
this is my setup, the solution can be in JS or CSS:
<p>
"Text"
<br>
<br>
"Text2"
<br>
<br>
<br> -> should be hidden
<br> ...