Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-680

Figure type recognition is sensible to empty lines

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      In the example below, the first figure is identified as a table while the second one is identified as a figure.
      This is due to the additional line break between the figure caption and the table.

      {{figure}}
      {{figureCaption}}
      {{id name="T1"/}}Title of Table 1 
      {{/figureCaption}}
      
      |Cell
      {{/figure}}
      
      {{figure}}
      {{figureCaption}}
      {{id name="T1bis"/}}Title of Table 1 bis
      {{/figureCaption}}
      
      
      |Cell
      {{/figure}} 

      Proposed solution: skip top level EmptyLinesBlock in the recognizer

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: