If you set layout properties through the added UI on 7.x-2.x branch and export documents, the layout properties are exported as JSON strings. Apple News Format document requires that they be numbers. If you preview a document in News Preview, you get the following errors and the document fails to load:

Error: "columns" was <"7"> but should be (null or null (JSON) or number)
layout -> columns

Error: "width" was <"1024"> but should be (null or null (JSON) or number)
layout -> width

Error: "margin" was <"70"> but should be (null or null (JSON) or number)
layout -> margin

Error: "gutter" was <"40"> but should be (null or null (JSON) or number)
layout -> gutter

Error: No useful layout found.
layout
CommentFileSizeAuthor
#2 cast_layout_options_int-2842871-2.patch920 bytesm4olivei

Comments

m4olivei created an issue. See original summary.

m4olivei’s picture

Assigned: m4olivei » Unassigned
Status: Active » Needs review
StatusFileSize
new920 bytes

Patch attached.

  • m4olivei committed 74f42ce on 7.x-2.x
    Merge branch '2842871-cast-layout-int' into 7.x-2.x
    
    * 2842871-cast-...
  • m4olivei committed e6b1bc5 on 7.x-2.x
    Issue #2842871 cast layout properties to integer.
    
m4olivei’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.