CStringIO और pisa का उपयोग कर पाइथन, आदेशित सूची (<ol टाइप = "ए">) संख्याओं को अक्षर नहीं दिखाती है

I'm running a Django website and writing a report that renders a template with view code as an inline PDF file using Pisa and cStringIO. That's all well and good, and working just fine. What I see in HTML from a render_to_response() shows up nicely in the PDF format. Now, I have a series of HTML

    lists. I'd like the outer list to be numeric (
      ) and an inner list to be alphabetic (
        ). I have tried using the inline type property of the
          tag as well as the list-style-type: upper-alpha, but neither renders the PDF with the letters for the OL. Instead they are always numbers.

          यहां मेरी render_to_pdf विधि है:

          def render_to_pdf(template_src, context_dict, extra_html=None):
              template = get_template(template_src)
              context = Context(context_dict)
              html = template.render(context)
              result = StringIO.StringIO()
          
              if extra_html:
                  html += extra_html
          
              pdf = pisa.pisaDocument(
                  StringIO.StringIO(html.encode("UTF-8")),
                  dest=result,
                  encoding='UTF-8',
                  link_callback=fetch_resources
              )
          
              if not pdf.err:
                  return HttpResponse(result.getvalue(), mimetype='application/pdf')
          
              return HttpResponse('We had some errors
          %s
          ' % escape(html))

          मेरा टेम्पलेट यहाँ है:

          1. 1
          2. 2
          3. 3
            1. A
            2. B
            3. C
          4. 4

          render_to_response में यह दिखाता है:

          1. 1
          2. 2
          3. 3
              A. A
              B. B
              C. C
          4. 4
          

          render_to_pdf में यह दिखाता है:

          1. 1
          2. 2
          3. 3
              1. A
              2. B
              3. C
          4. 4
          

          क्या कुछ आदेशित सूची पत्र दिखाने के लिए कोई तरीका है?

    0