Questions tagged [multiline]
Text that spans more than one line is considered "multiline". Concerns about wrapping, spacing, techniques and best practices.
1,814
questions
0
votes
0
answers
8
views
updating text inside TextEditor via code - Xcode swift
I'm trying to update the text inside TextEditor via code with no luck and i can't find any examples - Xcode swift
basically I would like to create a scrollable multiline log that can be
highlighted ...
1
vote
1
answer
21
views
How to apply pseudo-element "before" on a multilines span
On the following image, I have two spans: one with red border (around a part of the first line) and one with green borders (around a part of second and third line). The second span, as you see, ...
3
votes
4
answers
61
views
Grep pattern with Multiple lines with AND operation
How can I determine a pattern exists over multiple lines with grep? below is a multiline pattern I need to check is present in the file
Status: True
Type: Master
I tried the below command but ...
0
votes
1
answer
21
views
In Azure Pipelines how to post a dynamic, multi-line comment generated in a previous step using GitHubComment task?
In an Azure Pipeline, the following will post a multi-line comment to a GitHub PR:
stages:
- stage: MyStage
jobs:
- job: CommentOnPR
steps:
- task: GitHubComment@0
...
0
votes
0
answers
17
views
focus on empty line in middle of multiline edittext android
I am trying to make users put their text from the line they select even if it is away from other lines in edittext.
edittext is a multiline type so is there a method or event in touch events that ...
0
votes
2
answers
34
views
Parallel subshells doing work and report status
I am trying to do work in all subfolders in parallel and describe a status per folder once it is done in bash.
suppose I have a work function which can return a couple of statuses
#param #1 is the ...
0
votes
1
answer
20
views
Font size zero in fillable multiline-input-field in PDF-Form
I got stuck with a PDF-Document, which (among other fields) contains five larger multiline text inputs. For all five fields, the DefaultAppearance-parameter of the relevant widget says the following.
/...
0
votes
0
answers
27
views
Multi-line UILabel in TableView header [duplicate]
How can I achieve multi-line UILabel inside a UITableView header (not to be confused with view for header in section), with top,left,bottom and right anchors using autolayout programatically ?click ...
1
vote
3
answers
62
views
How to replace multi-lines text in Google Docs by a string with google script
I'm having trouble, replacing multi-lines text in a Google Doc, using App Script.
I've took the time to search and test similar questions I've learn a lot but I can't go through.
I have several blocs ...
0
votes
0
answers
10
views
echo multiline from sqlite in php
How can I echo (PHP) a multiline text value from SQLITE3 directly into HTML?
In PHP, I query a SQLITE database, and get a multiline string as the value. However, I can't find out how to echo the ...
0
votes
0
answers
8
views
c# openxml insert multi lines with different format
How to format a cell in excel from 4 properties in red box in the picture?
I have tried mergecells but it didn't work.
So I am looking for a way to insert several lines with different format(font-size,...
0
votes
2
answers
56
views
How to grep cloud functions in a multiline format separated by comma?
I have been trying to fetch the cloud functions using grep/awk/sed however the current command is not fetching the cloud functions listed in a multiline format.
This is the current command that is ...
0
votes
0
answers
21
views
Flutter - Wrap: do not wrap with text and container
i have this code:
import 'package:flutter/material.dart';
void main() => runApp(mainApp());
class mainApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ...
0
votes
1
answer
76
views
Sending logs from fluentd to splunk
I am using log4j , so have different formats of logs. I am able to send most of the logs using the below multiline format from fluentd to splunk, but few of them behave differently(The logs with ...
0
votes
1
answer
31
views
join attributes from lines to points that overlaps in r
I have linestrings which have attibutes and I want to create points from it but keeping the linestring's attributes. I've tried with st_cast("POINT") which keep the attributes information ...
0
votes
1
answer
19
views
Add space above x-caption on D3js multiline chart
I am trying to add space between xCaption and x-axis labels on D3js multiline chart but not able to. Also, how can I get rid of the last x-label (the one after 5).
const XCaption = svg.append('g')
...
0
votes
1
answer
22
views
Flutter: How can I have a multiline TextFormField that doesn't make a new line when I press enter, but executes a function?
I had a TextFormField, that executes a function when I press enter, for extra convenience (In addition to that function being executed when a button is pressed).
When I made the TextFormField able to ...
0
votes
1
answer
31
views
Input multiple dates into PySimpleGUI Multiline box
I would like to be able to paste a list of dates from Excel into a PySimpleGUI multiline box and save the entry as a pandas DateTime list.
This is my current code:
layout = [
[sg.Text("Please ...
0
votes
4
answers
91
views
Why does C not recognize strings across multiple lines?
(I am very new to C.)
Visual newlines seem to be unimportant in C.
For instance:
int i; int j;
is same as
int i;
int j;
and
int k = 0 ;
is same as
int
k
=
0
;
so why is
"hello
hello"
...
0
votes
1
answer
39
views
Swiftui Firebase paragraghs and line breaks in text uploaded to Firestore
I have checked around Stack overflow and online couldnt find any answer for Swiftui. I am manually uploading content to Firestore and fetching it in my app in article format, when i retrieve my data ...
0
votes
1
answer
28
views
Handling multiline formats in splunk
I am not sure of how to set the BREAK_ONLY_BEFORE
I have try setting
BREAK_ONLY_BEFORE: date
but it throws error
My logs are :
[2022-04-05 11:18:23,839] WARN Error while loading: connectors-versions....
1
vote
1
answer
47
views
Matching line where the line number is the sum of constants and the value of a certain line content (in a variable multiline text)
I have this file below, which is 3 recipes. Each recipe contains a fixed number of header lines and a variable number of ingredient lines (composition).
The last line of the header gives the number of ...
1
vote
1
answer
29
views
Regex to match a result that isn't single line and expanded across multiple lines
I want to change /<\?php\s([\s\S]*?)\?>/gi the way that single line PHP tags become excluded.
For example, here I want to match only second PHP tag and not the first one:
Test number <?PHP ...
1
vote
1
answer
36
views
question on multiline.pattern different examples
new to filebeat and multiline.pattern configuration as a whole.
I was reading up on multiline.pattern examples and came across this
multiline.pattern examples.
where the example used was multiline....
0
votes
1
answer
47
views
Can I use aliases in YAML block scalar?
I would like to inject a YAML field value in a block scalar.
I thought it was possible to reference aliases like so:
exclamationMark: &exclamationMark "!"
questionMark: &questionMark ...
0
votes
0
answers
7
views
How do we get exact match with AWK so that results for "123" don't include "1234" -- FreeBSD
I've been using the following which is great, except that I inadvertently delete additional sections because they include "222", like "2224" and "2225" and "2226&...
0
votes
1
answer
135
views
Adding a Private Key Environment Variable to Windows
I am trying to assign an environment variable in Windows from the contents of a RSA Private Key File.
In Linux this is easily accomplished with the export command
export TF_VAR_secretkey=`cat /path-to-...
1
vote
1
answer
52
views
converting multilines user input into single line
I just started programming and created my first code which is a word counter.
When I tested my code, it works on interactive window but not on the terminal because the terminal cannot accept multi-...
1
vote
1
answer
81
views
How do you make multiline text into a hoverable tooltip label?
Essentially I want to have underlined text (that might span multiple lines), where you can hover over the underlined text to reveal a tooltip. I figured out how to put multiple lines into the tooltips ...
0
votes
0
answers
20
views
Android AccessibilityService: AccessibilityNodeInfo.ACTION_SET_SELECTION not working properly with multiline fields in Browser apps
I'm working on an app with intense usage of AccessibilityService. The app works great with other Android apps, I can use text selection properly.
The problem comes with multiline fields in browsers: ...
-2
votes
2
answers
45
views
Why is : ' ' a comment in Bash? [closed]
In bash, you can sort-of do multi-line comments, like this:
: '
echo "You will never see this message :)"
'
But why does it only work out like that? If you do it without space after the ...
0
votes
0
answers
274
views
Fluent Bit Java Multiline parser on docker container logs in Kubernetes cluster (via New Relic integration)
We're using New Relic Fluent Bit integration to send Kubernetes pod logs to New Relic. Some pods are running Java apps so we'd like to apply java multiline parsing. Unfortunately this fluent-bit conf ...
0
votes
0
answers
63
views
How to solve looping of multiple-line reading while breaking Scanner in Java?
Im trying to read multiple lines from console. I don't know the number of lines and it may differ. I know only that each line contains 2 numbers and space between them. But when I try to read them, ...
0
votes
0
answers
56
views
How to make horizontally scrollable multi-line chipgroup in android?
Horizontally scrollable multi-line chip group
This is the chip group design I am trying to make in android. I have tried to use three chip-groups for three lines but they don't scroll together. ...
2
votes
1
answer
39
views
Select everything expect a word with spaces using regex without multiline
I try to filter a text with a regex. The program I use can only replace text with a regex pattern.
So I have to generate a regex that will select everything except a specific pattern/word with spaces ...
0
votes
1
answer
16
views
Parse Right Aligned Multi-Line Text File Report
I have a text file I am reading in that is not delimited in any way. The only consistency it has is being right aligned and based on position. Though, the first and last field on each line is not ...
0
votes
1
answer
28
views
Kafka and mult-iline (two by two lines) csv file: can Kafka handle it to gather each couple of lines in a single message?
I want to analyze my bathroom scale measurements, exportable in csv.
But they cannot be exploited immediately.
Durée,Poids,Variation,IMC,Masse grasse,Masse musculaire squelettique,Masse osseuse,Masse ...
0
votes
2
answers
197
views
Execute multiline bash command from Python and get its output
I am under Python 3.8.10 in Ubuntu 20.04 trying to execute a multiline bash command and get its output. For this I am trying to combine this and this. My bash command is this:
/home/foo/.drsosc/drs-5....
1
vote
0
answers
23
views
JSON multiline file performace tuning
I am trying to read a multiline file using pyspark in databricks and then flatten the file to get respective column which will invariably be stored as a delta table. I have successfully done it for 40 ...
0
votes
0
answers
40
views
how can I get big string data in pyspark?
I want to take big string paragraph from csv file and put it in dataframe in pyspark like;
data.to_csv('file.csv', index=False,encoding='utf-8',na_rep='Unkown')
df= spark.read.format('csv') \
...
1
vote
2
answers
32
views
Multi line time series pandas
I am trying to plot a multi line graph from pandas in python. I need three lines (positive, negative, neutral) and their number of occurrences during time. On the x-axis I would have the time, on the ...
-1
votes
1
answer
52
views
Multiline substitution to obtain a tree view
I have a bash script that generates the following output from a certain input using sed and `awk:
# ├── CHILDA1
# │ └── CHILDB1
# │ └── CHILDB2
# │ └── CHILDB3
# │ └── CHILDB4
# │ └── CHILDB5
# │ ...
-2
votes
1
answer
26
views
Attempt to invoke virtual method 'android.text.Editable android.widget.Editext.getText()' on a null object reference
I am using EdiText Multiline and I got this error.
xText is my EditText multiline on activity
This is my code
String myText;
myText = xText.getText().toString(); // error here
0
votes
0
answers
18
views
How do I paste multiple [sub-]nodes into CherryTree?
Using CherryTree from Giuseppe Penone, Version 0.99.45.
I want to copy a text list of node names and past it (from the clipboard) into CherryTree as a list of sub-nodes under the selected node.
...
0
votes
1
answer
64
views
bokeh: multiline with label in x axis
I created a multiline chart which tracks the CPU consumption of a machine week after week:
But I want to include year in the x axis legend, like in this image:
When I try to change index values (47, ...
0
votes
0
answers
38
views
How to parse multiline child tag from XML
I try to parse an external XML in Python. There is Text tag (I changed the text here for clarification purposes) which suggests to be of multiple lines if the Multiline tag is greater than 0. I assume ...
-3
votes
3
answers
111
views
Python get multiline value from properties file
I have properties file with multilines and some of the values on more than 1 line. Something like this:
first.key=\
Right,\
Side,\
Value
second.key=Second value
third.key=Third ...
0
votes
1
answer
39
views
How to create multiline lists from raw file and process them in python?
I have the following code that takes raw_file.txt and turns it into processed_file.txt.
Problem 1:
Besides item_location I also need the item_id (as str, not int) to be in the processed file, perhaps ...
1
vote
1
answer
39
views
How to grep necessary info from multi-line data using regex?
||/ software version some_text Description
+++-======================================-=====================================...
3
votes
6
answers
178
views
How to iterate the split result array of a multiline string value in order to reformat certain lines / newlines?
I have a string of data that has line feeds in the middle.
For example:
"Product Name \n Product Color \n Product Quantity \n Product Location \n Product Size \n Product Power"
The Amount ...