Questions tagged [blank-line]

Blank-Line refers to any existence of an empty line of data or the creation of an empty line on a form created by the *enter* or *return* keys.

Blank-Line, when referring to data, is used in the description of any record in a table/query where data does not exist. This could be in reference to creating a blank line of data, or determining where a blank line of data exists.

Blank-Line, when referring to a form, is used in the description of any line which contains nothing but white space. This could be in reference to shifting data downward or upward in a form or report, or shifting controls downward or upward in a form or report.

237 questions
3
votes
2 answers

C++ Ignore Empty First Line

How do I ignore an empty first line in "input.txt"? I don't necessarily know that there is an empty line (in this particular case there is, but I want to make my code generic), so I need to be able to read the line if there is information, or skip…
pbhuter
  • 373
  • 1
  • 4
  • 17
3
votes
1 answer

Batch: Search for string to skip lines above and write results to new file

I've successfully written a script which takes a string to search for in a specific file, and then outputs the line where it first occurs, and then I take that value into a for-loop and skips parsing that number of lines and write its contents to a…
3
votes
3 answers

How to delete blank lines in a text file on a windows machine

I am trying to delete all blank lines in all YAML files in a folder. I have multiple lines with nothing but CRLF (using Notepad++), and I can't seem to eliminate these blank lines. I researched this before posting, as always, but I can't seem to…
ASH
  • 20,759
  • 19
  • 87
  • 200
3
votes
2 answers

creating a blank line after some specific line using bash / linux

I need to add an additional blank line after the line 45 using sed for example: 44 some text one 45 some text two 46 some text three 47 some text four result: 44 some text one 45 some text two 46 47 some text three 48 some text four I've tried to…
Zaza
  • 458
  • 2
  • 7
  • 15
3
votes
1 answer

Vbscript Trim function

I have a script that reads in a comma delimited text file, however whenever I use Trim(str) on one of the values I have extracted in the file, it won't work... My Text File: some string, anotherstring, onelaststring some string, anotherstring,…
tarki
  • 67
  • 1
  • 7
3
votes
5 answers

Removing blank lines

I have a csv file in which every other line is blank. I have tried everything, nothing removes the lines. What should make it easier is that the the digits 44 appear in each valid line. Things I have tried: grep -ir 44 file.csv sed '/^$/d'…
user4893295
  • 533
  • 6
  • 25
3
votes
1 answer

Reading text file and skipping blank lines until EOF is reached

I am trying to read csv file full of text; however if there is a blank line in the middle somewhere, the whole thing breaks and I get a: java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException How would I go about removing/ignoring…
Ofek
  • 325
  • 1
  • 2
  • 13
3
votes
6 answers

When comparing two files, how do I skip (ignore) blank lines?

I'm comparing line against line of two text files, ref.txt (reference) and log.txt. But there may be an arbitrary number of blank lines in either file that I'd like to ignore; how can I accomplish…
jerryh91
  • 1,777
  • 10
  • 46
  • 77
2
votes
1 answer

IE prints blank line after space when space precedes
tag, when printed to actual printer, but not when IE browser displays HTML

Today, I ran into a styling issue when an HTML page is printed to a printer from IE 9 (but not when I print to a printer in other browsers). I used CutePDFWriter to do the same thing the printer does and reproduced it. If you view the HTML in the…
JustBeingHelpful
  • 18,332
  • 38
  • 160
  • 245
2
votes
2 answers

Python 2.x - ConfigParser stripping blank lines in multiline value

The following is the file parsed by ConfigParser: [Ticket] description = This is a multiline string. 1 2 4 5 7 As described by the official Python wiki for ConfigParser examples, here is the helper function: def ConfigSectionMap(section): …
paragbaxi
  • 3,965
  • 8
  • 44
  • 58
2
votes
2 answers

Perl: grep from multiple arrays at once

I have multiple arrays (~32). I want to remove all blank elements from them. How can it be done in a short way (may be via one foreach loop or 1-2 command lines)? I tried the below, but it's not working: my @refreshArrayList=("@list1", "@list2",…
PPP
  • 329
  • 1
  • 9
2
votes
2 answers

Get the headers from a CSV file (and only that line)

How do I read the first non-empty line from a text file, in plain javascript, possibly by using a new FileReader()? I wish to get only the first non-empty line, not the whole text in the file (which might be enormous). By "non-empty line" I mean a…
user8962168
2
votes
1 answer

SSRS Published report from MySQL DB shows blank/empty rows

I have created a very simple report in Visual Studio (also tried it in Report Builder) that just returns 10 rows from a table in a MySQL (Not MSSQL) database. I changed the background and foreground color to make sure I could clearly see the rows in…
Dean Thomsen
  • 139
  • 2
  • 7
2
votes
0 answers

Github code review shows blank lines after, how to remove them?

Here is my work flow: git pull origin master git checkout -b test Make some changes git add . git commit -m"Add changes" git push origin test Then in code review, I saw some empty lines, so instead of change formatting line by line, I reset that…
2
votes
0 answers

Xcode 9.4.1 adds a blank line to the end of C files causing compiler advisory

I am using Xcode 9.4.1 to write a header file in C. For some reason, Xcode always adds a blank line to the end of the file. How can I delete the line in Xcode? Or how do I prevent the extra blank from being generated in Xcode? #ifndef…
Sean Bearden
  • 289
  • 4
  • 14
1 2
3
15 16