Skip to content

whitespace and empty tags #53

Open
@schriftgestalt

Description

@schriftgestalt

How did you decide how the intendation and empty elements are handled.

I compared the .plist files generated by the Normalizer and what macOS (Xcode) would produce and found significantly differences. RoboFont agrees in this points with macOS.

  1. The top level dict element is indented in the normalised file and not in the file written by Xcode.
    from the Normalizer:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>ascender</key>
		<integer>1491</integer>

from Xcode

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>ascender</key>
	<integer>1491</integer>
  1. empty elements:
    from the Normalizer:
		<key>openTypeOS2Selection</key>
		<array>
		</array>

from Xcode:

 	<key>openTypeOS2Selection</key>
	<array/>

I tested this in Xcode on 10.9 and 10.13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions