<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPrefixSpacesDocumentAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSPrefixSpacesDocumentAttribute"
  },
  "title" : "NSPrefixSpacesDocumentAttribute"
}
-->

# NSPrefixSpacesDocumentAttribute

The number of spaces for indenting nested HTML elements.

```
extern NSAttributedStringDocumentAttributeKey NSPrefixSpacesDocumentAttribute;
```

## Discussion

An <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing an integer that represents the number of spaces per level by which to indent certain nested HTML elements. The default value is `0`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)