Hello I am generating a PDF in web2py but its ignoring my line breaks.
randname = random.randrange(1, 10001)
styles = getSampleStyleSheet()
title = My Title
doc = SimpleDocTemplate(primer.pdf)
story = []
story.append(Paragraph(strftime(%a, %d %b %Y
Andrew Evans wrote:
Hello I am generating a PDF in web2py but its ignoring my line breaks.
randname = random.randrange(1, 10001)
styles = getSampleStyleSheet()
title = My Title
doc = SimpleDocTemplate(primer.pdf)
story = []
Hello yes
This line doesn't seem to want to accept a list for some strange reason
story.append(Paragraph(str(result_list), para))
*cheers
--
http://mail.python.org/mailman/listinfo/python-list
Andrew Evans wrote:
Hello yes
This line doesn't seem to want to accept a list for some strange reason
story.append(Paragraph(str(result_list), para))
From the documentation it appears that you need to pass a string.
You're just passing the result of str(result_list), which isn't giving
you
Hello ty for the fast replies
This is the string I am using for the PDF I was able to create new lines
using the HTML br tag which is what I wanted a method to create new lines
search_str=Position: (%d) - Keyword: (%s) - Domain (%s) br /br / %
(idx+1, target_keyword, session.target_domain)
Andrew Evans wrote:
Hello ty for the fast replies
This is the string I am using for the PDF I was able to create new lines
using the HTML br tag which is what I wanted a method to create new lines
search_str=Position: (%d) - Keyword: (%s) - Domain (%s) br /br / %
(idx+1, target_keyword,