Blank values not preserved for Metadata and Page Property placeholders

Description

Since the implementation of https://k15t.jira.com/browse/EXP-2913 blank values for the Page Property and Metadata placeholders are not preserved in the generated export output. We should allows users to define blank values (like previously) without an error message/null text being rendered.

Steps to reproduce

  1. Create a page and add the Comala Metadata macro

  2. Add a value name for the macro but leave the content empty

  3. Create a custom PDF template and add the Metadata placeholder - reference the value name for the macro

  4. Export the page with the custom template

Expected result

  • A blank space (whitespace) is rendered

Actual result

  • Metadata placeholder - the error message below is printed

"Error rendering replacement: $scroll.metadata.(key): No metadata value for key 'key'.

  • Page Property placeholder - the text null is printed

Environment

None
Fixed

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

None

Participants

None

QA Status

None

Deployment

Cloud
Server

Documentation Status

None

UI Concept

None

External Votes

None

Components

Fix versions

Priority

Major