From 973e9940951a84e0feab00453ff130789be75201 Mon Sep 17 00:00:00 2001 From: Don Syme Date: Tue, 30 Aug 2022 16:13:46 +0100 Subject: [PATCH 1/2] Fix indexer output --- src/FSharp.Formatting.ApiDocs/GenerateModel.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs index 6b6df752a..9063780d6 100644 --- a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs +++ b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs @@ -1447,7 +1447,7 @@ module internal SymbolReader = | _, _, ".ctor", _, _ -> span [] [ !!v.ApparentEnclosingEntity.DisplayName; fullArgUsage ] // Indexers - | _, true, _, "Item", _ -> span [] [ !! "this.["; fullArgUsage; !! "]" ] + | _, true, _, "Item", _ -> span [] [ !! "this["; fullArgUsage; !! "]" ] // Custom operators | _, _, _, _, Some name -> From de09cbbd87591d5cd3c8de8109c631ca7e3ca021 Mon Sep 17 00:00:00 2001 From: Don Syme Date: Tue, 30 Aug 2022 16:15:00 +0100 Subject: [PATCH 2/2] Fix indexer output --- src/FSharp.Formatting.ApiDocs/GenerateModel.fs | 1 + tests/FSharp.Literate.Tests/DocContentTests.fs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs index 9063780d6..582d09ff6 100644 --- a/src/FSharp.Formatting.ApiDocs/GenerateModel.fs +++ b/src/FSharp.Formatting.ApiDocs/GenerateModel.fs @@ -1944,6 +1944,7 @@ module internal SymbolReader = | false -> let lang = elem.Attribute("lang").Value $"{lang} language-{lang}" + html.Append("
") |> ignore
                     html.Append($"") |> ignore
 
diff --git a/tests/FSharp.Literate.Tests/DocContentTests.fs b/tests/FSharp.Literate.Tests/DocContentTests.fs
index 4f26c449a..8250572fe 100644
--- a/tests/FSharp.Literate.Tests/DocContentTests.fs
+++ b/tests/FSharp.Literate.Tests/DocContentTests.fs
@@ -103,7 +103,9 @@ let ``Can build doc content`` () =
 []
 let ``Can build doc content using relative input path`` () =
     let rootOutputFolderAsGiven = __SOURCE_DIRECTORY__  "output1"
-    let relativeInputFolderAsGiven = Path.GetRelativePath(System.Environment.CurrentDirectory, __SOURCE_DIRECTORY__  "files")
+
+    let relativeInputFolderAsGiven =
+        Path.GetRelativePath(System.Environment.CurrentDirectory, __SOURCE_DIRECTORY__  "files")
 
     if Directory.Exists(rootOutputFolderAsGiven) then
         Directory.Delete(rootOutputFolderAsGiven, true)