メインコンテンツまでスキップ
バージョン:25.2

treeFormat

  • global property (STTreeNode.xmodule)
 The treeFormat

global property is a property list which controls certain aspects of the way trees are formatted as text, and converted to property lists.

  • keys include:
    • prettyPrint which defines whether trees are displayed nicely formatted (the default)
    • useStandardFormat property. If set to true, trees will always be converted to property lists using a standard format, with _tag,_attributes, and _children properties. When set to false (the default) converting a tree into a property list (using "as property list" or "as object") will result in a simplified property list format being used for nodes that have a tag that isn't a reserved property name and/or don't have any attributes that are reserved property names.
    • compactEmptyElements to control how empty elements in trees are formatted in XML. By default, it is set to false. New in 1.54.
  • Related: treeInputFormat