Skip to content

Commit 7f3b471

Browse files
TheBlob42artempyanykh
authored andcommitted
misc: Fix formatting
1 parent 7bc490e commit 7f3b471

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Marksman/Diag.fs

+1-2
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ let refToHuman (ref: Dest) : string =
108108
| Dest.Heading (docLink, { data = heading }) ->
109109
$"heading {Heading.name heading} in the document {Doc.name (DocLink.doc docLink)}"
110110
| Dest.LinkDef (_, { data = ld }) -> $"link definition {MdLinkDef.name ld}"
111-
| Dest.Tag (doc, { data = tag }) ->
112-
$"tag {tag.name} in the document {Doc.name doc}"
111+
| Dest.Tag (doc, { data = tag }) -> $"tag {tag.name} in the document {Doc.name doc}"
113112

114113
let docRefToHuman (name: string) : string = $"document '{name}'"
115114

Marksman/Refs.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ module Dest =
328328
seq {
329329
for targetDoc in targetDocs do
330330
match declToFind with
331-
| Dest.Tag(_, tag) ->
331+
| Dest.Tag (_, tag) ->
332332
let targets =
333333
Doc.index targetDoc
334334
|> Index.filterTagsByName tag.data.name.text

Tests/RefsTests.fs

+2-5
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ module BasicRefsTests =
220220
"Entry 1" // 11
221221
"" // 12
222222
"## Dup" // 13
223-
"Entry 2" // 14
223+
"Entry 2" // 14
224224
"" // 15
225225
"#tag1 #tag2" |] // 16
226226
)
@@ -263,10 +263,7 @@ module BasicRefsTests =
263263

264264
let refs = Dest.findElementRefs false folder doc2 def |> stripRefs
265265

266-
checkInlineSnapshot
267-
(fun x -> x.ToString())
268-
refs
269-
[ "(doc1.md, (16,0)-(16,5))" ]
266+
checkInlineSnapshot (fun x -> x.ToString()) refs [ "(doc1.md, (16,0)-(16,5))" ]
270267

271268
[<Fact>]
272269
let refToTag_atTag_withDecl () =

0 commit comments

Comments
 (0)