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
2
votes
3 answers

How can i remove line feed character in text file?

import subprocess cmd = 'tasklist' proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) file = open("Process_list.txt", "r+") for line in proc.stdout: file.write(str(line)) file.close() i just wrote saving process list to text…
Jason
  • 393
  • 1
  • 4
  • 9
2
votes
2 answers

Notepad++ RegEx delete line starting with \pard.....ending with line feed

I'm cleaning up files using Notepad ++, and trying to delete lines that start with \pard and have some text then end with a line feed. But \n doesn't work in RegEx and .* doesn't work in an extended find and replace. This is what I've tried…
Sarah
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

SonarQube CRLF detection using checkstyle rules

After migrating maven-checkstyle-plugin to SonarQube, I face some oddity how line feeds and tab chars are transfered. Back in my Maven build I had the following substantial rules:
Robert Heine
  • 1,820
  • 4
  • 29
  • 61
2
votes
3 answers

Remove CRLF from the middle of a file

I have been receiving a text file where each row should be 246 columns in length. For some reason an errant CRLF is being inserted in the file after every 23,036 characters, causing all sorts of problems. The file is in a windows format, all line…
z-vap
  • 56
  • 8
2
votes
2 answers

How to match carriage return with no linefeed in python

I am trying to use regular expressions in python to find carriage returns \r in a string which have no following linefeed \n, thus being a likely error. However, my regex allways matches, and I do not know why: >>> import re >>> cr =…
aldorado
  • 4,394
  • 10
  • 35
  • 46
2
votes
1 answer

sed read single line without linefeed

As a novice linux user, I try to use sed to replace some text string. The new string is the content of a line of another file's. It basically works as intended apart from that a newline is inserted after the substituted text (which I dont want…
kermit
  • 23
  • 3
2
votes
1 answer

Issue with the line feed character in libcurl (curlpp)

I'm currently using curlpp to perform an HTTP query, but curlpp is reporting that there are illegal characters in the URL. I've narrowed down the URL problem to a variable that is being read from a config file (one line, it just contains the…
2
votes
1 answer

cobol 85 , carriage return and line feed

I am coding in cobol85, I have an input file having 2 records as of now ""1";"S";"20140211095016";;;;;"KANATA";"ON";"K2V 1A5";"ZR1 ;;;;;;;;;;"-503.15";;"1715.27";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"26696.33 ";"78.22";"3275.95";;;;;"30050.50";;"…
2
votes
1 answer

Record Separation in VSQL Export; CR LF

I'm exporting using vsql and I've included an explicit ' \pset recordsep '\n' ' in the header. I'd expect the resulting text file to have just 'LF' at the end of each record, but the records end in 'CRLF' instead, despite the lack of '\r' in the…
2
votes
2 answers

How to delete line-break in string which is encoded by the function EncodeString with Delphi 7?

I'am using EncodeString in Delphi 7 to encode strings which load from a source textfile. In the source textfile, every line is one record. Now, I want to use the function EncodeString which is Base64 function to encode every line string and write to…
user71251100
  • 21
  • 1
  • 3
2
votes
3 answers

Why JS throws syntax error, if there is a linefeed between return and {

I always thought, that new lines in JS sourcecode doesn't matter. Why new lines do matter sometimes? Error: function x(y) { return { y : y, z : y*2 } } console.info(x(5).z); Throws a SyntaxError: missing ; before statement…
Inherent
  • 183
  • 1
  • 1
  • 13
2
votes
3 answers

Linefeed in batch regex

I want to match all lines of the following text with FINDSTR /R LABO_A = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = host01)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = LABO) ) ) I already tried What are the…
Marco Frost
  • 780
  • 3
  • 12
  • 25
2
votes
1 answer

Stata: removing line feed control characters

I have a dataset which I export with command outsheet into a csv-file. There are some rows which breaks line at a certain place. Using a hexadecimal editor I could recognize the control character for line feed "0a" in the record. The value of the…
giordano
  • 2,954
  • 7
  • 35
  • 57
2
votes
1 answer

How to add a new line after a column in sql query Oracle Apex

I'm running the following sql query in my Oracle Apex application: SELECT column1 || chr(13) || chr(10) || column2 FROM table; I want the second column to be displayed on a new line. This doesn't seems to be working in my Apex application. However…
Snow Leopard
  • 347
  • 3
  • 7
  • 18
2
votes
1 answer

How do I make a line feed in a div tag?

I have a text that have som \n in it. But when showing the text in a div there are no line feeds. How do I make a line feed in a div??? I have tried to Replace("\n","<br />") and Replace("\n","<p></p>"). But the
is showed…
Anders
  • 288
  • 4
  • 10