contents = contents.replace(
"\u2610 ", '<LI><INPUT TYPE="checkbox"> '
)
- # contents = linkify.sub(r'<a href="\1">\1</a>', contents)
-
individual_lines = contents.split("\n")
num_lines = len(individual_lines)
contents = ""
x = "<UL>" + x
for y in range(0, leading_spaces):
x = x + "</UL>"
- contents = contents + x + "\n"
+ contents = contents + x + "<BR>\n"
individual_lines = contents.split("\n")
color = note.color.name.lower()
<HR style="border-top:3px solid white;">
"""
)
- if num_lines >= 10:
+ logger.debug("THERE ARE %d LINES.", num_lines)
+ if num_lines >= 8:
+ column_break = False
logger.debug(f"{num_lines} lines: two column mode")
f.write('<TABLE BORDER=0 WIDTH=100%><TR valign="top">')
f.write(
for x in individual_lines:
f.write(x + "\n")
count += 1
- if count == num_lines / 2:
+ if count >= num_lines // 2 and not column_break:
+ column_break = True
f.write("</UL></FONT></TD>\n")
f.write(
'<TD WIDTH=50% style="color:#eeeeee; font-size:large">\n'