Python Forum
Why the blank lines in output?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why the blank lines in output?
#2
In case the trace was close in length to overfilling one line such that if multiple variable fields are close to maximal length then it might push the output to a second line causing the blank line, I retried by adding nine more characters to the end of each line:

print(f'current_date is {current_date}, common date is {datetime.utcfromtimestamp(current_date*86400).strftime("%Y-%m-%d")}, trade status is {trade_status}, and control flag is {control_flag}123456789.')
I got the same result: only the occasionally blank line interspersed among the output.
Reply


Messages In This Thread
Why the blank lines in output? - by Mark17 - Jun-27-2022, 06:24 PM
RE: Why the blank lines in output? - by Mark17 - Jun-27-2022, 06:34 PM
RE: Why the blank lines in output? - by deanhystad - Jun-27-2022, 06:37 PM
RE: Why the blank lines in output? - by Mark17 - Jun-27-2022, 06:45 PM
RE: Why the blank lines in output? - by deanhystad - Jun-27-2022, 07:24 PM
RE: Why the blank lines in output? - by DeaD_EyE - Jun-27-2022, 07:53 PM
RE: Why the blank lines in output? - by Mark17 - Jun-27-2022, 11:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to insert Dashed Lines in between Rows of a tabulate output Mudassir1987 0 593 Sep-27-2023, 10:09 AM
Last Post: Mudassir1987
  Remove Blank Lines from docx table and paragraphs bsudhirk001 1 3,830 Feb-14-2021, 12:38 AM
Last Post: Larz60+
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 6,202 Aug-10-2020, 11:01 PM
Last Post: medatib531
  CSV gives me blank row on PC, but not a Mac bazcurtis 2 2,907 Jan-06-2020, 08:40 AM
Last Post: buran
  re.finditer issue, output is blank anna 1 2,436 Feb-07-2019, 10:41 AM
Last Post: stranac
  25 blank lines in my sorted_fruits output list! raven61 7 4,429 Aug-09-2018, 11:30 PM
Last Post: raven61

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020