Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18666

Remove heading from content when importing an Office document with heading split

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 12.10.4
    • Office
    • None
    • Office server: LibreOffice 6.2
    • Unknown

    Description

      Steps to reproduce

      • In LibreOffice, create a document with several level 1 headings such as "Heading ABC" and "Heading DEF", add some paragraphs below each heading, then save the document in ODT format
      • Create a page using type "Page from Office"
      • In the "Office Importer" screen, select the ODT file you just created, check "Split document" along level 1 headings, and hit "Import"

      Actual result

      Two subpages are created (one for each section). Their title corresponds to the section heading as expected, however the level 1 heading is also present in the page content itself. For instance the first subpage title is "Heading ABC" and its content is "= Heading ABC =" followed by the paragraphs contained in the section.

      Expected result

      The subpage content should not contain the heading since it's already the page title.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              slauriere slauriere
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: