8000 rst writer: indentation problem with BlockQuote at beginning of list item · Issue #10236 · jgm/pandoc · GitHub < 8000 meta name="theme-color" content="#1e2327">
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
rst writer: indentation problem with BlockQuote at beginning of list item #10236
Closed
@PhilipPartsch

Description

@PhilipPartsch

Explain the problem.
I'm using rst writer with list-tables.
If the content of a cell is a BlockQuote, the indention of the block looks wrong in the rst output.

Input:

  , Table
      ( "" , [] , [] )
      (Caption Nothing [])
      [ ( AlignLeft , ColWidth 0.2582188930503537 )
      , ( AlignLeft , ColWidth 0.7417811069496463 )
      ]
      (TableHead ( "" , [] , [] ) [])
      [ TableBody
          ( "" , [] , [] )
          (RowHeadColumns 0)
          []
          [ Row
              ( "" , [] , [] )
              [ Cell
                  ( "" , [] , [] )
                  AlignLeft
                  (RowSpan 1)
                  (ColSpan 1)
                  [ BlockQuote
                      [ Para [ Emph [ Str "Level" , Space , Str "0:" ] ]
                      , Para [ Emph [ Str "Incomplete" , Space , Str "process" ] ]
                      ]
                  ]

Current output:

.. list-table::
   :widths: 26 74

   - 

      - *Level 0:*

            *Incomplete process*

Expected output:

.. list-table::
   :widths: 26 74

   - 

      - *Level 0:*

        *Incomplete process*

I cannot identify the wrong code line, but the transformation of the BLockQuote looks fine see.

Maybe it is some where in the table processing.
From the logic, even following output would be fine:

.. list-table::
   :widths: 26 74

   - 

      -    *Level 0:*

           *Incomplete process*

I'm even not sure if it is fixed with commit.

I even fear, if we change here the processing, that the output of classical tables breaks.
As it works for these:

+------------------------+-------------------------------------------------------------------------+
|    *Level 0:*          | *The process is not implemented or fails to achieve its process         |
|                        | purpose.*                                                               |
|    *Incomplete         |                                                                         |
|    process*            |                                                                         |
+------------------------+-------------------------------------------------------------------------+

Pandoc version?
3.4

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0