Questions tagged [multiline]
Text that spans more than one line is considered "multiline". Concerns about wrapping, spacing, techniques and best practices.
1,925
questions
0
votes
0
answers
17
views
How to set fixed height of the MultilineTextField in KivyMD
I am trying to set a fixed height for MDTextField:
MDTextField:
id: 'feedback_text'
hint_text: 'Description of the problem'
multiline: True
mode: 'rectangle'
size_hint: None, None
...
-3
votes
3
answers
107
views
How do I split this text into multiline records?
#!/usr/bin/bash
mailing_list="Jane Doe
123 Main Street
Anywhere, SE 12345-6789
John Smith
456 Tree-lined Avenue
Smallville, MW 98765-4321
Amir Faquer
C. de la Lusitania 98
08206 Sabadell
...
-1
votes
0
answers
27
views
Multiline "with" statement with comments [duplicate]
This doesn't work in Python:
with open("foo.txt", "r") as f, # input file
open("bar.txt", "r") as g, # another file
open("baz.txt&...
0
votes
1
answer
23
views
How does FHIR handle multiline markdown inside JSON?
I am working on a project to get medical data from a laboratory system. We want to use FHIR to serialize the data for exchange.
I am now manually producing a few examples in which I take existing ...
0
votes
0
answers
12
views
v4.4 Multiline chart _ crashes with undefined
It crashes on line 277 of core.datasetController.js
Why am I even there?
The property it is handling seems to be fill but I don't understand why?
I am effectively trying to display 6 lines with the ...
1
vote
5
answers
81
views
Java substring of multi-line String up to nth line and character index on that line
In Java, given a multi-line String I want to get the substring from the beginning up to the nth line and the character index on that line. (Both line and character indexes are zero-based.)
For example,...
0
votes
1
answer
32
views
Always display text on two lines
I have Text:
Text(
"My long ... long ... text",
style: const TextStyle(overflow: TextOverflow.ellipsis),
maxLines: 2,
),
In case text is long, it will be displayed on two lines only. ...
0
votes
0
answers
45
views
How can a small difference in input string cause a large difference in std::regex_search performance
How can the small change in the command string can cause such a large
performance difference. Is my regex wrong?
The intent is to extract the (possibly multiline string) between the two markers '|>'...
0
votes
1
answer
24
views
Multiline TextInputEditText with height wrap_content not restoring size
If have a following layout in xml. It's a part of bigger layout
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layoutInputNewText"
android:...
0
votes
2
answers
155
views
How to declare a multiline string in Zig?
How can I write a string that spans over multiple lines in Zig?
For example:
var str = `hello
second line
world
fourth line
`
0
votes
1
answer
214
views
Google Cloud Run Jobs logging splits Exception MESSAGES with multiple lines into multiple log entries
Several days ago, a Python RuntimeError was raised in one of my company's Cloud Run jobs which stopped it.
Cloud Run's logging, unfortunately, handled that RuntimeError in a bad way.
It correctly put ...
0
votes
0
answers
21
views
Logstash multiline codec doesn't work for stacktraces
I'm using the ELK stack to process my app's logs. So, the problem is that Logstash multiline codec doesn't work properly for the stacktraces. The input multiline logs are not parsed by the pattern and ...
0
votes
3
answers
75
views
Excel SUM values of a mixed Column with line-broken cells AND single-line cells
It'd be pretty obvious but I'm wondering for days: How can I SUM a column of a mix of single-line values and multi-line (Alt+Enter) values in Excel?
In this example, I'd like to display the Sum on ...
1
vote
0
answers
16
views
How to collapse empty space in two-column flexbox text layout? [duplicate]
I want to remove the empty space in two-column text layouts, like this:
This is a flex container with two columns containing (potentially) multi-line text. It looks fine when the text is all on one ...
1
vote
3
answers
97
views
Multiline expression: How does c compilers treat newline?
I'm reading the introduction section of the K&R book on C. To see what code format generates errors, I tried splitting printf("hello world!"); into different lines, as shown below. The ...
1
vote
2
answers
111
views
With ggplot2, is there a way to only label plot points of one line when using a multi-line plot design?
I have plotted 2 lines on a graph using ggplot, specially using the "select" and "gather" tools to collapse the two line variables into key-value pairs using this method (solution ...
1
vote
1
answer
39
views
Multiline regex from single long string
This is in Powershell 7.x, but I believe it is a general regex question.
I have the headers from an email in one long string, and would like to capture them with the Powershell split function using a ...
2
votes
3
answers
79
views
Awk multiline match, print output separated by newline
I am following the example How can I process multi-line records with awk in a bash script
My input is:
Restaurant: Chik-Fil-A
City: Columbus
State: GA
Address: 123 Biscayne Blvd
Phone: 911
...
0
votes
0
answers
14
views
Grok parsing fo JBOSS log of type ERROR trace
This is a JBOSS Error trace , the first line is the error and the following lines containing the "at" are the description for this error:
2023-07-18 10:34:33,602 ERROR [stderr] (...
1
vote
1
answer
54
views
Multi-line fitting on a graph and calculating the position of the intersection points of the lines
Using an input dataset, I have drawn a graph similar to the one below:
figure_1: Log-Log plot
and I want fitting multi lines like below:
figure_2: multi line fitting that I want
then calculate the ...
3
votes
2
answers
79
views
Change docstring max line length while preserving newlines, indents, and words
Given a function docstring, I seek to reduce its max line length. My attempt preserves newlines, indents, and words (doesn't break words), but fails to actually enforce max line length. My other ...
-2
votes
1
answer
18
views
Multi line regex
I've read many items on the topic, but didn't manage to find my solution. So I go with a very simple exemple of what I want:
I have this text:
aaz
bby
ccx
ddw
eev
ffu
ggt
hhw
I want to extract ...
0
votes
0
answers
81
views
C# Winforms TextBox Multiline not working correctly
Why cannot I get a Winforms TextBox to get the correct current line when I scroll up or down to an invisible line.
Is it my error in CalculateUserTextValue(Point location) method or a bug in the ...
1
vote
6
answers
155
views
How can I replace multiple lines in a string?
I want to replace multiline string as below using sed/awk/perl
#-------------------------------------------------------------------------------
# supply connections
#-----------------------...
1
vote
0
answers
1k
views
.NET MAUI: Make Entry expand to multiple lines like an Editor but prevent newline on Enter
In a .NET MAUI application, I require a text input control that starts as a single-line input but automatically expands to multiline when the text exceeds the horizontal space. Additionally, this ...
1
vote
1
answer
64
views
How to remove newline characters from env vars with cmd only?
The limitation that I'm facing is that I can only use CMD for this (due to the setup of the proj).
The problem with CMD is that for /f "tokens... will always parse the result of set line by line. ...
1
vote
1
answer
226
views
Powershell to set multi-line legalnoticetext in registry - Windows 10
Ok, been searching for the answer to this for hours and I can't believe I am not finding a clear cut solution. How do you enter multi-line text into "legalnoticetext" via script?
Key - ...
1
vote
4
answers
169
views
How to extract key-value pairs from valid JavaScript source code (not JSON) via regex?
The string, though being perfectly valid JS source code, does not meet the JSON format. Therefore I don't think there's a simple solution which allows the usage of JSON.parse. Although i may be wrong.
...
7
votes
1
answer
93
views
How do I create a multiline string in Raku?
In JavaScript (ES6), you can use template literals (``) to create multiline strings as shown in the following example:
const html = `
<div>
<p>Raku is <b>ofun</b>.</p&...
1
vote
2
answers
165
views
How do I use multiline regex match in Jenkins / Groovy
In Jenkins I'm building a step that reads CHANGELOG.md and uses regex to extract the latest changelog from giving version.
The used .groovy code:
#!/usr/bin/env groovy
import java.nio.file.Files
...
0
votes
1
answer
47
views
How to create parametrized regex (by terms of C#) which matches strings delimited by custom multicharacter delimiter?
So, I want to find strings in a text. The text can contain multiple lines. The strings can be delimited by custom delimiters - this should be parameterized. There can be multiple strings in the text, ...
1
vote
3
answers
55
views
python symmetric start/end regex does not work
Python 3
read a string from the file:
with open(filepath, "r", encoding="utf-8") as f:
content_string = f.read()
It looks line this:
---
section-1-line-1
section-1-line-2
...
0
votes
1
answer
43
views
How to create console Tail functionality with MaterialUI TextField component as Console for web application
Current Behavior of Component: not scrolling up as new content is added to textField:
I am currently trying to create a live console in a react application and was hoping to just leverage materialUI'...
0
votes
1
answer
317
views
How to make Ansible 'debug' module print a string containing many '\n' as a multiline string?
One of my Ansible variable is defined as
- name: prepare the multiline message
set_fact:
report_string: |
THIS IS A TEST
state of the machines
---------------------
...
3
votes
1
answer
101
views
Does R separate_wider_regex allow use of the multiline regex flag (?m) or regex(..., multiline=TRUE)?
I am trying to replace the deprecated tidyr::extract with tidyr::separate_wider_regex.
However, I am separating a multiline text column and it seems that separate_wider_regex does not respect the ...
0
votes
2
answers
43
views
Multiline string containing numbers
I have a dataframe that looks like:
data1 = [{'price2022': "12014\n205****", 'company': "toyota",'price2023': "10014\n180****"},
{'price2022': "22018", '...
0
votes
0
answers
231
views
Multiline copy paste not working in the MongoDB shell mongosh | Windows
I'm new to MongoDB, I was trying to use insertMany method and wanted to insert the below documents in a Collection. I copied from notepas++ but the Mongoshell gave the errors when I copy pasted. How ...
0
votes
0
answers
24
views
How to convert multiline string INPUT into a singlle line string? [duplicate]
I made bot that sends tracks discord channel and send me the messages every 24 hours. the message are like this:
Daily Quest announcement | click here to report a problem
Today's Daily Quest is:
n of ...
1
vote
2
answers
85
views
Multiple line search and replace bash sed
I have a file called tst.txt that contains text:
exec(compile(open(bla bla bla'))
DATE = "05JUN20"
Only capture the below line
params = {'System_Date': getparamDate(DATE), 'Param': '2'}
This ...
0
votes
3
answers
69
views
Deleting multiline variable content from a file
I am trying to write a Bash script handling Pacman repositories in /etc/pacman.conf usable within a script without depending on the user interaction required by a text editor.
I am having troubles ...
1
vote
1
answer
81
views
How to format this multi-line string where indentation has to be preserved
This is for a to-do list CLI tool in Python. When the items currently in the list are printed to the terminal, the results are automatically formatted to keep indentation consistent for numbers of all ...
-1
votes
2
answers
64
views
Is there a way to implement a multiline string input for the code in python below?
There is a translation table (dictionary) above this code.
Synopsis of the code:
Converting/translating a string of characters to another character in a different ASCII/Unicode-8 character and ...
1
vote
1
answer
117
views
c# Multiline string const, StringBuilder and unit tests
I know why this is happening.
Compile time string constants always have "\r\n".
Runtime uses System.Environment.NewLine which is "\n" on a Mac (and probably Linux as well)
Is there ...
0
votes
0
answers
19
views
How do I make a multiline textbox automatically scroll down to new information?
Using visual studio c# I am receiving serial data and want it to always scroll to new data.
This is my method:
private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)
...
1
vote
2
answers
65
views
How to Break ListElement Properties over Multiple Lines
I am trying to figure out how to do a multiline ListElement property.
I have a ListModel with ListElements as follows:
ListElement {
key: "key";
value: 1;
description: "Very ...
-1
votes
1
answer
258
views
How to make a 2 line heading with GitHub Markdown? [duplicate]
I want to know how to make a markdown heading over 2 lines.
I tried using 2 headers, but that displays 2 headers rather than 1 multiline heading. For example,
# :emoji:
# Heading
displays,
:emoji:
...
1
vote
3
answers
56
views
awk transpose three patterns in tree into multiple lines
Hello do anyone might advice how to transpose this multiple lines which are in tree view with 3 patterns
listb: harold newu/edu
tag: 05.8s
step: sha256asd6f4, size: 1024
step: sha256asd6f5, ...
2
votes
1
answer
47
views
Is it possible to nest javadoc?
I want to nest javadoc in order to demonstrate some code functionality. However, the end of the inner javadoc comment block ends the outer comment block too.
Sample use case
/**
* Sample is a utility ...
1
vote
1
answer
29
views
How to detect multiline string when the start and end is a keyword?
I'm trying to get develop a syntax highlighting for such a text:
PAGE_TEXT_PARAGRAPH_START (HN 10 JUSTIFIED 0.0 4.0)
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis varius nulla,
...
-1
votes
1
answer
132
views
How to replace all include guards by #pragma once in whole repository in VSCode?
In our project, we use include guards like:
..
#ifndef _SINGLETON_H_
#define _SINGLETON_H_
..
#endif // #ifndef _SINGLETON_H_
..
The last line can be without comment etc. so the files match ...