Skip to content

Commit 143a1c3

Browse files
saeckireknih
authored andcommitted
fix: write /NS instead of /Name for namespaces
1 parent 0811ebf commit 143a1c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/structure.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ writer!(Namespace: |obj| {
15231523
impl Namespace<'_> {
15241524
/// Write the `/NS` attribute to specify the identifier (URI) of the namespace.
15251525
pub fn ns(&mut self, identifier: TextStr) -> &mut Self {
1526-
self.dict.pair(Name(b"Name"), identifier);
1526+
self.dict.pair(Name(b"NS"), identifier);
15271527
self
15281528
}
15291529

0 commit comments

Comments
 (0)