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

Removing a new line feed in json file using Python.

I am in the process of downloading data from firebase, exporting it into a json. After this I am trying to upload it into bigquery but I need to remove the new line feed for big query to accept it. { "ConnectionTime": 730669.644775033, …
W. Stephens
  • 729
  • 5
  • 17
  • 31
3
votes
2 answers

How to construct CSS selector targeting attribute with value containing an ASCII line feed?

Suppose you have html that contains the following:
// the enter key has been pressed after the substring "exam" in the title attribute I understand that if I wanted to…
3
votes
1 answer

Cassandra Invalid Yaml despite valid values

I'm writing a python script in Windows that takes in a cassandra.yaml file, writes a new one with different values, then copies that file to a linux server. However, I get this error from the linux server when starting cassandra: ERROR 00:53:03…
Rdesmond
  • 1,201
  • 10
  • 30
3
votes
2 answers

How to read line by line a CR-only file with Perl?

I'm trying to read a file which has only CR as line delimiter. I'm using Mac OS X and Perl v.5.8.8. This script should run on every platform, for every kind of line delimiter (CR, LF, CRLF). My current code is the following : open(FILE,…
subb
  • 1,578
  • 1
  • 15
  • 27
3
votes
1 answer

RubyMine - How to change end of line character to Windows?

I changed a RubyMine settings few days back. It was related to changing the end of line character from '\r\n' to something else, so that it is only Mac compatible. Now, each file I edit is changed completely in git diff. Also, I can't recall which…
Apoorv Parijat
  • 861
  • 1
  • 10
  • 16
3
votes
2 answers

SSIS: Can't handle line-feeds in CSV (Column delimiter not found)

I have some CSV files that appear OK in Notepad and Excel however seem to have extra line-feeds in them when I view them in VS2010 or Notepad++. When I attempt to process them in SSIS, the files fail with errors like this: Error: 0xC0202055 at Merge…
PeterX
  • 2,713
  • 3
  • 32
  • 42
3
votes
2 answers

C , linebreak without linefeed?

Silly question but, Is it possible to break a line on stdout without the line feed using printf();? If not, any tips on how I would overwrite 2+ lines, if possible? I'm trying to generate sort of a progress bar but on multiple lines. Any…
janjust
  • 796
  • 2
  • 7
  • 21
3
votes
1 answer

How to get XML with line feeds using jquery?

I have a simple script, that fills html form with values recieved from server $.ajax({ url: getUrl(), dataType: "xml" }).done(function(xml) { //get values from xml file and fill in html form }); and simple code on a server side, that…
Zkejid
  • 81
  • 5
3
votes
6 answers

What is the difference between "\r" and "\n"?

Possible Duplicate: What is the difference between \r and \n? I understand that it's different for each operating System, for example, "\r\n" may be expected in Windows, "\n" may be expected in Unix snd "\r" may be expected in Macs. What are the…
Corey
  • 1,177
  • 4
  • 16
  • 24
3
votes
4 answers

Can't remove empty lines with sed regex

I have a file like this: 2733617 3.00 3 3 2733617 E1b1 8.00 8 16 2733617 E1b1b1b 2.00 2 4 2733617 I1 294.00 296 590 2733617 I2 1.00 1 2 2733617 I2a1 2.00 2 4 sed '/^$/d' does not work for me. Outfile looks…
AWE
  • 4,045
  • 9
  • 33
  • 42
3
votes
4 answers

How can I replace certain carriage return line feed followed by a dash with a
?

How can I replace the sequence ASCII 13 ASCII 10 - (CR LF DASH or /r/n-) in the text inside a TD element in a web page using javascript or jQuery? There are similar quesitons about this in stackoverflow and elsewhere, but the solutions listed…
earth_tom
  • 831
  • 1
  • 5
  • 13
2
votes
1 answer

How to replace br tags with tags in XSL template?

Let's assume I have a simple XML file: Hello world!<br>Nice to see you all!<br>Goodbye! Now I want to replace all <br> strings with strings so the result should be e.g.:
user1180357
  • 37
  • 1
  • 5
2
votes
2 answers

NetworkStream on port 21 (FTP) stops reading when it receives a byte with the value 10 (new line character)

I have a program that sends 88 bytes of raw data (not a string) using NetworkStream.Read and NetworkStream.Write. Byte number 58 happens to have the value 10 (new line). The receiving program instance stream stops reading once this byte is received…
2
votes
1 answer

How to set the default line terminator for new files in emacs?

Is there a something I can put in my .emacs config file to set the default line-ending style for newly created files? I'm using GNU emacs for windows, but would like newly created files to use unix-style (line-feed only) line endings by default.
Henry
  • 1,459
  • 2
  • 11
  • 17
2
votes
2 answers

Remove line feed (LF) from XML node using XSLT

I have the following in an XML node: XXX YYY ZZZ (as you can see there is a line feed) My XSLT is really simple: How can I remove the line feed using XSLT?
user412045