Questions tagged [lf]

Line Feed is a special character (unicode U+000A).

Line Feed is a special character (unicode U+000A), (ASCII: '\n', 0x0A, 10 in decimal). Line feed (LF) and carriage return (CR) are closely associated to represent end of line (EOL).

68 questions
1
vote
2 answers

Unix shell script to remove new lines preceded with specific characters

First, thanks in advance for your helps. I need to replace new lines (\n) by a space in an unix files when they are not preceded with ';'. For example, if you have in an unix file something like : TestFields;TestFields2 ;TestFields3;TestFields4 The…
1
vote
4 answers

batch file/ automation to add a LF and CR (EOL) to the end of multiple .csv files

I have a bunch of .csv files that are generated externally and sent to me periodically. they each contain a single row of text with 31 "columns". None of them, however, have any kind of EOL (no LF by itself or with CR), so when I attempt to combine…
drumtechjp
  • 25
  • 1
  • 5
1
vote
1 answer

Jtable cellrenderer doesnt change backgroun of integer value

I created cellrenderer class for change my rows background. if row's(rate%)colums value is something i try to change background of row. But when i try it. Renderer only change non-Integer colums' background. Here is my renderer. public class…
Ozan Ertürk
  • 455
  • 5
  • 17
1
vote
2 answers

Configure git repository so that all files are stored with line-ending LF (not CRLF)?

For a specific github repo ( only ) I need to make sure that all text files pushed have LF line-ending ( not CRLF ). Further, pulled-down repo files should retain LF line-ending on clients either OSX or Windows. Is this possible ?
BaltoStar
  • 6,511
  • 13
  • 46
  • 67
1
vote
1 answer

possible to config Git line-endings specific to repo?

I am working on both Windows and Mac against a repo with origin on GitHub. On GitHub, I want line-endings to be LF. On Mac OS X, I want line-endings to be LF. On Windows, I want line-endings to be CRLF -- except for a specific repo where I want…
BaltoStar
  • 6,511
  • 13
  • 46
  • 67
1
vote
3 answers

Java L&F customization: How do I use synth to customize BorderFactory borders?

Specifically, I currently have a JPanel with a TitledBorder. I want to customize the look of the border. In my app's current state, the title is drawn, but not the line border itself. If I bind an imagePainter to the panelBorder method for Panel…
Jorenko
  • 2,428
  • 1
  • 21
  • 25
1
vote
2 answers

scanf() not giving correct values for entered doubles

double low = 0 , high = 0.0,n = 0.0; ---- printf("Enter the integral limits (low high): "); scanf("%lf %lf", &low, &high); printf("%lf%lf",low,high); printf("Enter the number of subinternals (n): "); scanf("%lf",&n); When I test this program (by …
0
votes
2 answers

Has anyone got an example of aerith style swing mixed with GUI maintainability of SWT editing?

My boss loves VB (we work in a Java shop) because he thinks it's easy to learn and maintain. We want to replace some of the VB with java equivalents using the Eclipse SWT editor, because we think it is almost as easy to maintain. To sell this, we'd…
hawkeye
  • 31,052
  • 27
  • 133
  • 271
0
votes
2 answers

replace lf with cr-lf in text file Cygwin

I've got a Cygwin script that outputs stuff to a file. My only problem is that it always uses the \n "lf" line endings instead of \r\n "cr-lf". I want to either replace them or just get cygwin to always output \r\n for line endings. I've tried the…
Ian
  • 3,577
  • 2
  • 30
  • 52
0
votes
0 answers

UNIX LF to Windows CR LF

I have part of code that transmit values to CSV file but in UNIX LF. But I need Windows CR LF function insert_data($columns, $elements) { $elements_to_insert = count($elements); $count = 0; $message =…
Alex
  • 1
0
votes
0 answers

cannot create preview image at lf ( go-Lang filer ) , using imgcat

I like to create preview image at lf, go-Lang file manager. It is possible to create preview image at my manajro-Linux, using lfimg. But it is not at my Mac, OSX-Mojave. It is because "überzug", which create preview image, dose not work on OSX. Then…
yoda.55
  • 1
  • 1
0
votes
0 answers

How to import data in R from the CSV if unexpectedly occurs in some of the lines LF instead CRLF

There is a file with this content (6 lines): field name,english description,russian description,format**CRLF** name,name of ndicator, Наименование показателя,varchar(1000)**CRLF** okpo,OKPO code,Код ОКПО,varchar(8)**CRLF** 11103,"indicator…
0
votes
1 answer

When downloading a .CSV file the CRLF line breaks are missing, but Excel can load it fine. Can I fix the CRLF without loading Excel?

I am retrieving daily logs from a system in the format of a .csv file. I want to import these to my database. The issue is that, for some reason, these .csv files seem to lack CRLF line endings (it's being replaced by LF). If I open the file in…
sebjsv
  • 1
  • 2
0
votes
1 answer

How to commit files to git with line separator changed (getting 'nothing to commit')

I need to update some files for a pull request so that they have matching line separators to the rest of the project. I've changed these files from LF to CRLF in notepad++ (couldn't figure out how to do it in intellij), now I'm trying to commit this…
0
votes
1 answer

VSCode changing CRFL to LF on file save, and git records a change even if there is none

I've noticed a weird behavior in VSCode, when I save a file, even if I don't make any change, I can see in the low right corner that it changes from CRLF to LF. Even if I make several changes, git tracks extra lines as being added and deleted at the…