Skip to content

Commit f6469bf

Browse files
committed
.
1 parent 691a7a6 commit f6469bf

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

src/DeterministicIoPackaging/Relationships.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public static void PatchRelationships(XDocument xml, bool patchIds)
4646

4747
root.Add(relationships);
4848

49-
static bool IsPsmdcpElement(XElement rel)
49+
static bool IsPsmdcpElement(XElement element)
5050
{
51-
var target = rel.Attribute("Target")!;
51+
var target = element.Attribute("Target")!;
5252
return target.Value.EndsWith(".psmdcp");
5353
}
5454
}

src/Tests/RelationshipsTests.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,21 @@ public Task Run()
88
"""
99
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1010
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
11-
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
12-
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
13-
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>
11+
<Relationship
12+
Id="rId2"
13+
Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"
14+
Target="docProps/core.xml"/>
15+
<Relationship
16+
Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
17+
Target="docProps/app.xml"/>
18+
<Relationship
19+
Id="rId1"
20+
Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
21+
Target="xl/workbook.xml"/>
22+
<Relationship
23+
Id="rId4"
24+
Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"
25+
Target="package/services/metadata/core-properties/f81c51cec5594be694368ed6b7beba9.psmdcp"/>
1426
</Relationships>
1527
""");
1628
Relationships.PatchRelationships(xml, true);

0 commit comments

Comments
 (0)