Questions tagged [linefeed]

Linefeed, also known as LF, is a character that controls the switching to the next line.

Linefeed, also known as LF, is a character that controls the switching to the next line.

303 questions
0
votes
1 answer

Line feed - Is \n\r valid?

In an Windows environment: \r (Carriage Return) moves the cursor to the beginning of the line without advancing to the next line. \n (Line Feed) moves the cursor down to the next line without returning to the beginning of the line. According to…
Bilow
  • 2,194
  • 1
  • 19
  • 34
0
votes
1 answer

VBA Word cannot insert Linefeed

I have a string with a number, looking like this: "12345678-123" I want to add a linefeed (the thing you get by pressing [SHIFT] + [ENTER]) before the dash "-". It keeps adding a carriage return. This is my code: sSomeString = Replace(sSomeString,…
user2871190
  • 241
  • 2
  • 5
  • 19
0
votes
1 answer

Add carriage return and line feed after Head tag to Action Rewrite Value in IIS Rewrite Rule Module outbound rule

I'm working on dynamically adding a script block using an IIS URL Rewrite Rule (outbound). The script block should begin right after the HTML head tag. It works as intended. The only problem is I'd like to place the script block on a new and…
user3621633
  • 1,681
  • 3
  • 32
  • 46
0
votes
2 answers

Read binary data from QProcess in Windows

I have some .exe file (say some.exe) that writes to the standard output binary data. I have no sources of this program. I need to run some.exe from my C++/Qt application and read standard output of the process I created. When I'm trying to do this…
borisbn
  • 4,988
  • 25
  • 42
0
votes
3 answers

Skip the same string value

var data = "20 FIXED\r\n7 FIXED BUT FX KFY 200\r\n 9 FIXED BUT FZ MX KFY 150 KMZ 200\r\nLOAD 1 LOADTYPE Dead TITLE DEAD"; function pullBetTwoStrings(data, str1, str2) { return data.split(str1)[1].split(str2)[0].trim(); } var…
0
votes
1 answer

Win Batch, separate single line to multiple

i have 2 different text files. Each contains a single line, containing several parameters and/or absolute paths. Each single parameter and/or path is enclosed in double quotes: -d"some_param" -d"next_param" -i"c:\some_path" -i"c:\other_path" I want…
GreenBærg
  • 115
  • 1
  • 9
0
votes
0 answers

Textbox not using vbCrLf unless converted to vbNewLine

I have a StoredProcedure that returns a string. In the string I put CHAR(13) and CHAR(10) to have carriage return and line feed. I read the string from a winform in VB.NET and the string correctly has a "VBCrLf" in it. When I look at the string…
Johannes Wentu
  • 931
  • 1
  • 14
  • 28
0
votes
2 answers

RegEx to remove new line feed at starting and ending in Oracle SQL

My data contains lots of new line feeds at starting and end of string, which is making difficulty in understanding data. Sample data is shown as below. ' sample text new value ' I tried to replace chr(10) with empty string, but it was removing…
Ashwin
  • 245
  • 2
  • 7
  • 22
0
votes
1 answer

Replacing Linefeeds in SQL database

I'm in a bit over my head here. I have an SQL database, and I'm trying to replace all linefeeds (LF), which are NOT preceeded by a whitespace, with a whitespace + the linefeed. I'm using SQLiteStudio for this. What I have right now is the…
Chris W.
  • 1
  • 1
0
votes
2 answers

Does omitting the closing tag of a PHP block at the end of a file remove any line feeds or whitespace,if present in a respective file?

I'm using PHP 7.1.12 I know that the closing tag of a block of PHP code automatically implies a semicolon so we do not need to have a semicolon terminating the last line of a PHP block. The closing tag for the block will include the immediately…
user9059272
0
votes
1 answer

Which "trailing newline" the PHP manual is talking about? It's just confusing the manual readers and PHP learners. Please clear the confusion

I'm reading the PHP manual. I come across a sentence on the manual page(URL : Instruction separation). There is the first paragraph on this page saying : As in C or Perl, PHP requires instructions to be terminated with a semicolon at the end of…
PHPLover
  • 1
  • 51
  • 158
  • 311
0
votes
1 answer

JS(vue.js), How can i use linefeed? (\n)

Im making error messages with notification in Vue.js. Tutorial Demo: https://admin.vuebulma.com/#/components/notification Tutorial Codes:…
Aaron Ryu
  • 7
  • 6
0
votes
1 answer

Can't print a linefeed that was PUSHed on the stack in NASM

I'm learning the NASM assembler and I have being stuck at the moment with handling the linefeed. How do I print the linefeed? I'll show you. But, before I show it, it's important to tell you about my platform: $ uname -a Linux 4.4.0-97-generic…
user8245660
0
votes
1 answer

BASH - Include line feeds in message output

I'm using the following command to capture the diskspace used on my server and store it in the var space. space=`cd /users/; du -hs * | sort -h;` at the command line entering echo "$space" shows the correct output with the line feeds for the…
Rocket
  • 1,065
  • 2
  • 21
  • 44
0
votes
1 answer

Adding carriage return to each line

I have a result from a query which I am writing to a file. I want the file to list the rows vertically instead of horizontally. I have the following code: $fh = fopen($file, 'w'); while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) { $array[] =…