Bug #13296

EAC rountripping - some fields are indented on import, causing markdown to render them as code blocks

Added by Dan Gillean over 1 year ago.

Status:NewStart date:04/28/2020
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:EAC - Import/Export
Target version:-
Google Code Legacy ID: Tested version:2.5
Sponsored:No Requires documentation:

Description

On import of an AtoM-generated EAC-CPF XML file, AtoM is adding space before the "Internal structures/genealogy" and "General context" field data is added. If Markdown is enabled, then this is rendered as a code block on import.

To reproduce

  • Ensure that Markdown is enabled
  • Create a new authority record with all fields populated
  • Export the record as EAC-CPF XML
  • Re-import the EAC-CPF XML file

Resulting error

  • Space is added before two fields on import, causing them to render as a code block

See the attached screenshots

Expected outcome

No space is added before field data where it didn't previously exist, and the imported fields are not rendered as code blocks.

roundtrip-markdown-issue-EAC-CPF-example.png (137 KB) Dan Gillean, 04/28/2020 11:01 AM

roundtrip-markdown-issue-EAC-CPF.png (32.2 KB) Dan Gillean, 04/28/2020 11:01 AM

Also available in: Atom PDF