From e9a40280ad49cc471143c0be6807b7cd4033b52c Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Fri, 21 Jun 2019 17:25:48 +0200 Subject: Fix format in KotlinWebsiteHtml, markdown format changed slightly --- core/src/main/kotlin/Formats/MarkdownFormatService.kt | 15 +++++++++++---- core/src/main/kotlin/Formats/StructuredFormatService.kt | 10 +++++----- core/testdata/format/JavaSupertype.html | 6 ++++-- core/testdata/format/classWithCompanionObject.html | 9 ++++++--- core/testdata/format/codeBlock.html | 12 ++++++------ core/testdata/format/codeBlock.md | 4 ++-- core/testdata/format/companionImplements.md | 2 +- core/testdata/format/companionObjectExtension.md | 2 +- .../format/crossLanguage/kotlinExtendsJava/Bar.html | 9 +++++---- core/testdata/format/deprecated.class.html | 3 ++- core/testdata/format/deprecated.package.html | 9 ++++++--- core/testdata/format/entity.html | 6 +++--- core/testdata/format/extensions.class.md | 4 ++-- .../format/functionalTypeWithNamedParameters.html | 9 ++++++--- core/testdata/format/gfm/listInTableCell.md | 2 +- core/testdata/format/gfm/sample.md | 6 +++--- core/testdata/format/javaCodeLiteralTags.md | 2 +- core/testdata/format/javaLinkTag.html | 9 +++++---- core/testdata/format/javaLinkTagWithLabel.html | 9 +++++---- core/testdata/format/javaSeeTag.html | 6 ++++-- core/testdata/format/javadocHtml.md | 2 +- core/testdata/format/javadocOrderedList.md | 4 ++-- core/testdata/format/jdkLinks.md | 2 +- core/testdata/format/linkWithLabel.html | 9 +++++---- core/testdata/format/linkWithStarProjection.html | 3 ++- core/testdata/format/linksInEmphasis.md | 2 +- core/testdata/format/linksInHeaders.md | 2 +- core/testdata/format/linksInStrong.md | 2 +- core/testdata/format/multiplatform/implied/foo.md | 2 +- .../format/multiplatform/merge/multiplatform.package.md | 2 +- core/testdata/format/multiplatform/mergeMembers/foo.md | 2 +- core/testdata/format/multiplatform/omitRedundant/foo.md | 2 +- .../format/multiplatform/simple/multiplatform.package.md | 4 ++-- core/testdata/format/nestedLists.md | 2 +- core/testdata/format/newlineInTableCell.package.md | 2 +- core/testdata/format/orderedList.html | 6 +++--- core/testdata/format/overloads.html | 8 ++++---- core/testdata/format/receiverReference.md | 2 +- core/testdata/format/sinceKotlin.html | 6 +++--- core/testdata/format/sinceKotlin.md | 2 +- core/testdata/format/sinceKotlin.package.md | 2 +- core/testdata/format/sinceKotlinWide.package.md | 4 ++-- core/testdata/format/summarizeSignatures.md | 2 +- core/testdata/format/summarizeSignaturesProperty.md | 2 +- core/testdata/format/tokensInEmphasis.md | 2 +- core/testdata/format/tokensInHeaders.md | 2 +- core/testdata/format/tokensInStrong.md | 2 +- core/testdata/format/typeAliases.package.md | 2 +- core/testdata/format/typeLink.html | 3 ++- core/testdata/format/unorderedLists.md | 2 +- 50 files changed, 125 insertions(+), 98 deletions(-) diff --git a/core/src/main/kotlin/Formats/MarkdownFormatService.kt b/core/src/main/kotlin/Formats/MarkdownFormatService.kt index 71356619..216dd2ef 100644 --- a/core/src/main/kotlin/Formats/MarkdownFormatService.kt +++ b/core/src/main/kotlin/Formats/MarkdownFormatService.kt @@ -177,10 +177,17 @@ open class MarkdownOutputBuilder(to: StringBuilder, } override fun appendHeader(level: Int, body: () -> Unit) { - ensureParagraph() - to.append("${"#".repeat(level)} ") - body() - ensureParagraph() + when { + inTableCell -> { + body() + } + else -> { + ensureParagraph() + to.append("${"#".repeat(level)} ") + body() + ensureParagraph() + } + } } override fun appendBlockCode(language: String, body: () -> Unit) { diff --git a/core/src/main/kotlin/Formats/StructuredFormatService.kt b/core/src/main/kotlin/Formats/StructuredFormatService.kt index 264a176d..62ea1108 100644 --- a/core/src/main/kotlin/Formats/StructuredFormatService.kt +++ b/core/src/main/kotlin/Formats/StructuredFormatService.kt @@ -767,10 +767,10 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, if (summarized.platformPlacement == Summarized.PlatformPlacement.Row) { appendPlatforms(platforms) } -// appendHeader(level = 4) { -// appendParagraph { - appendLink(memberLocation) - + appendHeader(level = 4) { + // appendParagraph { + appendLink(memberLocation) + } if (node.sinceKotlin != null) { appendSinceKotlin(node.sinceKotlin.toString()) } @@ -832,6 +832,7 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, if (summarized.platformPlacement == Summarized.PlatformPlacement.Summary) { appendPlatforms(summary.platforms) } + appendContent(summary.content) summary.signatures.subList(0, summary.signatures.size - 1).forEach { appendSignatures( it, @@ -843,7 +844,6 @@ abstract class StructuredOutputBuilder(val to: StringBuilder, summary.signatures.last(), summarized.platformPlacement == Summarized.PlatformPlacement.Signature ) - appendContent(summary.content) } } diff --git a/core/testdata/format/JavaSupertype.html b/core/testdata/format/JavaSupertype.html index 93346a4a..85fb6d84 100644 --- a/core/testdata/format/JavaSupertype.html +++ b/core/testdata/format/JavaSupertype.html @@ -13,7 +13,8 @@ -<init> +

<init>

+ Bar() @@ -24,7 +25,8 @@ -returnFoo +

returnFoo

+ open fun returnFoo(foo: JavaSupertype.Foo!): JavaSupertype.Foo! diff --git a/core/testdata/format/classWithCompanionObject.html b/core/testdata/format/classWithCompanionObject.html index 95fcbf6b..e477b53b 100644 --- a/core/testdata/format/classWithCompanionObject.html +++ b/core/testdata/format/classWithCompanionObject.html @@ -13,7 +13,8 @@ -<init> +

<init>

+ Klass() @@ -24,7 +25,8 @@ -x +

x

+ val x: Int @@ -35,7 +37,8 @@ -foo +

foo

+ fun foo(): Unit diff --git a/core/testdata/format/codeBlock.html b/core/testdata/format/codeBlock.html index a877e8c6..ead4dbc0 100644 --- a/core/testdata/format/codeBlock.html +++ b/core/testdata/format/codeBlock.html @@ -19,11 +19,11 @@ fun readFile(name: String): String {...} -<init> +

<init>

+ -Throws()

This annotation indicates what exceptions should be declared by a function when compiled to a JVM method.

- +Throws() @@ -48,11 +48,11 @@ fun readFile(name: String): String {...} -<init> +

<init>

+ -ItDoesSomeObfuscatedThing()

Check output of

- +ItDoesSomeObfuscatedThing() diff --git a/core/testdata/format/codeBlock.md b/core/testdata/format/codeBlock.md index b6163a37..c14fc7bd 100644 --- a/core/testdata/format/codeBlock.md +++ b/core/testdata/format/codeBlock.md @@ -16,7 +16,7 @@ fun readFile(name: String): String {...} ### Constructors -| [<init>](-init-.md) | `Throws()`
This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. | +| [<init>](-init-.md) | This annotation indicates what exceptions should be declared by a function when compiled to a JVM method.`Throws()` | [test](../../index.md) / [ItDoesSomeObfuscatedThing](./index.md) @@ -33,5 +33,5 @@ Check output of ### Constructors -| [<init>](-init-.md) | `ItDoesSomeObfuscatedThing()`
Check output of | +| [<init>](-init-.md) | Check output of`ItDoesSomeObfuscatedThing()` | diff --git a/core/testdata/format/companionImplements.md b/core/testdata/format/companionImplements.md index ead95193..2734e1fe 100644 --- a/core/testdata/format/companionImplements.md +++ b/core/testdata/format/companionImplements.md @@ -12,5 +12,5 @@ Correct ref [Foo.Companion](-companion.md) ### Constructors -| [<init>](-init-.md) | `Foo()`
Correct ref [Foo.Companion](-companion.md) | +| [<init>](-init-.md) | Correct ref [Foo.Companion](-companion.md)`Foo()` | diff --git a/core/testdata/format/companionObjectExtension.md b/core/testdata/format/companionObjectExtension.md index f62c856e..43dff899 100644 --- a/core/testdata/format/companionObjectExtension.md +++ b/core/testdata/format/companionObjectExtension.md @@ -10,5 +10,5 @@ ### Companion Object Extension Properties -| [x](../x.md) | `val Foo.Default.x: Int`
The default object property. | +| [x](../x.md) | The default object property.`val Foo.Default.x: Int` | diff --git a/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html index c413595b..4d08043c 100644 --- a/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html +++ b/core/testdata/format/crossLanguage/kotlinExtendsJava/Bar.html @@ -14,11 +14,11 @@ -<init> +

<init>

+ -Bar()

See xyzzy

- +Bar() @@ -27,7 +27,8 @@ -xyzzy +

xyzzy

+ open fun xyzzy(): Unit diff --git a/core/testdata/format/deprecated.class.html b/core/testdata/format/deprecated.class.html index d0e27e88..11d2e944 100644 --- a/core/testdata/format/deprecated.class.html +++ b/core/testdata/format/deprecated.class.html @@ -16,7 +16,8 @@ -<init> +

<init>

+ C() diff --git a/core/testdata/format/deprecated.package.html b/core/testdata/format/deprecated.package.html index a02783b6..5b218f74 100644 --- a/core/testdata/format/deprecated.package.html +++ b/core/testdata/format/deprecated.package.html @@ -12,7 +12,8 @@ -C +

C

+ class C @@ -23,7 +24,8 @@ -p +

p

+ val p: Int @@ -34,7 +36,8 @@ -f +

f

+ fun f(): Unit diff --git a/core/testdata/format/entity.html b/core/testdata/format/entity.html index 2068009e..bfeb34ea 100644 --- a/core/testdata/format/entity.html +++ b/core/testdata/format/entity.html @@ -14,11 +14,11 @@ -<init> +

<init>

+ -Bar()

Copyright © JetBrains 2015 "

- +Bar() diff --git a/core/testdata/format/extensions.class.md b/core/testdata/format/extensions.class.md index b8fa200a..cd1bb70e 100644 --- a/core/testdata/format/extensions.class.md +++ b/core/testdata/format/extensions.class.md @@ -2,6 +2,6 @@ ### Extensions for kotlin.String -| [fn](fn.md) | `fun String.fn(): Unit`
`fun String.fn(x: Int): Unit`
Function with receiver | -| [foobar](foobar.md) | `val String.foobar: Int`
Property with receiver. | +| [fn](fn.md) | Function with receiver`fun String.fn(): Unit`
`fun String.fn(x: Int): Unit` | +| [foobar](foobar.md) | Property with receiver.`val String.foobar: Int` | diff --git a/core/testdata/format/functionalTypeWithNamedParameters.html b/core/testdata/format/functionalTypeWithNamedParameters.html index c0b0306b..af97eb4e 100644 --- a/core/testdata/format/functionalTypeWithNamedParameters.html +++ b/core/testdata/format/functionalTypeWithNamedParameters.html @@ -14,7 +14,8 @@ -<init> +

<init>

+ A() @@ -38,7 +39,8 @@ -<init> +

<init>

+ B() @@ -62,7 +64,8 @@ -<init> +

<init>

+ C() diff --git a/core/testdata/format/gfm/listInTableCell.md b/core/testdata/format/gfm/listInTableCell.md index 59fba5c4..1cafb61a 100644 --- a/core/testdata/format/gfm/listInTableCell.md +++ b/core/testdata/format/gfm/listInTableCell.md @@ -14,4 +14,4 @@ | Name | Summary | |---|---| -| [foo](foo.md) | `fun foo(): Unit`
  1. Foo
  2. Bar
| +| [foo](foo.md) |
  1. Foo
  2. Bar
`fun foo(): Unit` | diff --git a/core/testdata/format/gfm/sample.md b/core/testdata/format/gfm/sample.md index a720881f..a9464ea3 100644 --- a/core/testdata/format/gfm/sample.md +++ b/core/testdata/format/gfm/sample.md @@ -10,11 +10,11 @@ The class Foo. | Name | Summary | |---|---| -| [<init>](-init-.md) | `Foo()`
The class Foo. | +| [<init>](-init-.md) | The class Foo.`Foo()` | ### Functions | Name | Summary | |---|---| -| [bar](bar.md) | `fun bar(): Unit`
The method bar. | -| [baz](baz.md) | `fun baz(): Unit`
The method baz. | +| [bar](bar.md) | The method bar.`fun bar(): Unit` | +| [baz](baz.md) | The method baz.`fun baz(): Unit` | diff --git a/core/testdata/format/javaCodeLiteralTags.md b/core/testdata/format/javaCodeLiteralTags.md index 83d535fc..88472b87 100644 --- a/core/testdata/format/javaCodeLiteralTags.md +++ b/core/testdata/format/javaCodeLiteralTags.md @@ -12,5 +12,5 @@ A<B>C ### Constructors -| [<init>](-init-.md) | `C()`
`AC` | +| [<init>](-init-.md) | `AC``C()` | diff --git a/core/testdata/format/javaLinkTag.html b/core/testdata/format/javaLinkTag.html index 0a027c0e..f61673d5 100644 --- a/core/testdata/format/javaLinkTag.html +++ b/core/testdata/format/javaLinkTag.html @@ -14,11 +14,11 @@ -<init> +

<init>

+ -Foo()

Call #bar() to do the job.

- +Foo() @@ -27,7 +27,8 @@ -bar +

bar

+ open fun bar(): Unit diff --git a/core/testdata/format/javaLinkTagWithLabel.html b/core/testdata/format/javaLinkTagWithLabel.html index f592f85e..92c67795 100644 --- a/core/testdata/format/javaLinkTagWithLabel.html +++ b/core/testdata/format/javaLinkTagWithLabel.html @@ -14,11 +14,11 @@ -<init> +

<init>

+ -Foo()

Call this wonderful method to do the job.

- +Foo() @@ -27,7 +27,8 @@ -bar +

bar

+ open fun bar(): Unit diff --git a/core/testdata/format/javaSeeTag.html b/core/testdata/format/javaSeeTag.html index 0f5465aa..dd19c56c 100644 --- a/core/testdata/format/javaSeeTag.html +++ b/core/testdata/format/javaSeeTag.html @@ -15,7 +15,8 @@ -<init> +

<init>

+ Foo() @@ -26,7 +27,8 @@ -bar +

bar

+ open fun bar(): Unit diff --git a/core/testdata/format/javadocHtml.md b/core/testdata/format/javadocHtml.md index 0e8c7ca8..b6a03cd6 100644 --- a/core/testdata/format/javadocHtml.md +++ b/core/testdata/format/javadocHtml.md @@ -34,5 +34,5 @@ with (some) { } ### Constructors -| [<init>](-init-.md) | `C()`
**Bold** **Strong** *Italic* *Emphasized* | +| [<init>](-init-.md) | **Bold** **Strong** *Italic* *Emphasized* `C()` | diff --git a/core/testdata/format/javadocOrderedList.md b/core/testdata/format/javadocOrderedList.md index a861df46..1d94ad5b 100644 --- a/core/testdata/format/javadocOrderedList.md +++ b/core/testdata/format/javadocOrderedList.md @@ -10,8 +10,8 @@ ### Constructors -| [<init>](-init-.md) | `Bar()`
+| [<init>](-init-.md) | 1. Rinse 2. Repeat -
| +
`Bar()` | diff --git a/core/testdata/format/jdkLinks.md b/core/testdata/format/jdkLinks.md index 4312aa2d..eddee485 100644 --- a/core/testdata/format/jdkLinks.md +++ b/core/testdata/format/jdkLinks.md @@ -10,5 +10,5 @@ You can print something to [java.lang.System.out](https://docs.oracle.com/javase ### Constructors -| [<init>](-init-.md) | `C()`
This is a [ClassLoader](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String)) | +| [<init>](-init-.md) | This is a [ClassLoader](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html) and I can get its [ClassLoader.getResource](https://docs.oracle.com/javase/6/docs/api/java/lang/ClassLoader.html#getResource(java.lang.String))`C()` | diff --git a/core/testdata/format/linkWithLabel.html b/core/testdata/format/linkWithLabel.html index daed792c..52dfa4a3 100644 --- a/core/testdata/format/linkWithLabel.html +++ b/core/testdata/format/linkWithLabel.html @@ -14,11 +14,11 @@ -<init> +

<init>

+ -Bar()

Use this method for best results.

- +Bar() @@ -27,7 +27,8 @@ -foo +

foo

+ fun foo(): Unit diff --git a/core/testdata/format/linkWithStarProjection.html b/core/testdata/format/linkWithStarProjection.html index a9d6b125..ce9b82c6 100644 --- a/core/testdata/format/linkWithStarProjection.html +++ b/core/testdata/format/linkWithStarProjection.html @@ -13,7 +13,8 @@ -foo +

foo

+ fun foo(c: Enum<*>): Unit diff --git a/core/testdata/format/linksInEmphasis.md b/core/testdata/format/linksInEmphasis.md index 0cd1aca1..984941fa 100644 --- a/core/testdata/format/linksInEmphasis.md +++ b/core/testdata/format/linksInEmphasis.md @@ -14,7 +14,7 @@ An emphasised class. ### Constructors -| [<init>](-init-.md) | `Bar()`
An emphasised class. | +| [<init>](-init-.md) | An emphasised class.`Bar()` | ### Functions diff --git a/core/testdata/format/linksInHeaders.md b/core/testdata/format/linksInHeaders.md index f771aabd..2f18d442 100644 --- a/core/testdata/format/linksInHeaders.md +++ b/core/testdata/format/linksInHeaders.md @@ -20,7 +20,7 @@ Some class with really useless documentation. ### Constructors -| [<init>](-init-.md) | `Bar()`
Some class with really useless documentation. | +| [<init>](-init-.md) | Some class with really useless documentation.`Bar()` | ### Functions diff --git a/core/testdata/format/linksInStrong.md b/core/testdata/format/linksInStrong.md index 34359a3d..d234937b 100644 --- a/core/testdata/format/linksInStrong.md +++ b/core/testdata/format/linksInStrong.md @@ -14,7 +14,7 @@ A strong class. ### Constructors -| [<init>](-init-.md) | `Bar()`
A strong class. | +| [<init>](-init-.md) | A strong class.`Bar()` | ### Functions diff --git a/core/testdata/format/multiplatform/implied/foo.md b/core/testdata/format/multiplatform/implied/foo.md index 5c43ca29..c261df36 100644 --- a/core/testdata/format/multiplatform/implied/foo.md +++ b/core/testdata/format/multiplatform/implied/foo.md @@ -8,7 +8,7 @@ This is a foo. ### Constructors -| (JVM, JS) [<init>](-init-.md) | `()`
This is a foo. | +| (JVM, JS) [<init>](-init-.md) | This is a foo.`()` | ### Properties diff --git a/core/testdata/format/multiplatform/merge/multiplatform.package.md b/core/testdata/format/multiplatform/merge/multiplatform.package.md index 2dfdce38..60ed85c4 100644 --- a/core/testdata/format/multiplatform/merge/multiplatform.package.md +++ b/core/testdata/format/multiplatform/merge/multiplatform.package.md @@ -4,5 +4,5 @@ ### Types -| (JVM, JS) [Foo](-foo/index.md) | `class Foo`
This is a foo. | +| (JVM, JS) [Foo](-foo/index.md) | This is a foo.`class Foo` | diff --git a/core/testdata/format/multiplatform/mergeMembers/foo.md b/core/testdata/format/multiplatform/mergeMembers/foo.md index 5c43ca29..c261df36 100644 --- a/core/testdata/format/multiplatform/mergeMembers/foo.md +++ b/core/testdata/format/multiplatform/mergeMembers/foo.md @@ -8,7 +8,7 @@ This is a foo. ### Constructors -| (JVM, JS) [<init>](-init-.md) | `()`
This is a foo. | +| (JVM, JS) [<init>](-init-.md) | This is a foo.`()` | ### Properties diff --git a/core/testdata/format/multiplatform/omitRedundant/foo.md b/core/testdata/format/multiplatform/omitRedundant/foo.md index 49a46972..5ed92d51 100644 --- a/core/testdata/format/multiplatform/omitRedundant/foo.md +++ b/core/testdata/format/multiplatform/omitRedundant/foo.md @@ -8,7 +8,7 @@ This is a foo. ### Constructors -| (JVM) [<init>](-init-.md) | `Foo()`
This is a foo. | +| (JVM) [<init>](-init-.md) | This is a foo.`Foo()` | ### Properties diff --git a/core/testdata/format/multiplatform/simple/multiplatform.package.md b/core/testdata/format/multiplatform/simple/multiplatform.package.md index b5d9cc7d..73f7d1df 100644 --- a/core/testdata/format/multiplatform/simple/multiplatform.package.md +++ b/core/testdata/format/multiplatform/simple/multiplatform.package.md @@ -4,6 +4,6 @@ ### Types -| (JS) [Bar](-bar/index.md) | `class Bar`
This is a bar. | -| (JVM) [Foo](-foo/index.md) | `class Foo`
This is a foo. | +| (JS) [Bar](-bar/index.md) | This is a bar.`class Bar` | +| (JVM) [Foo](-foo/index.md) | This is a foo.`class Foo` | diff --git a/core/testdata/format/nestedLists.md b/core/testdata/format/nestedLists.md index c785ba42..6b8de8dc 100644 --- a/core/testdata/format/nestedLists.md +++ b/core/testdata/format/nestedLists.md @@ -29,7 +29,7 @@ Usage instructions: ### Constructors -| [<init>](-init-.md) | `Bar()`
Usage instructions: | +| [<init>](-init-.md) | Usage instructions:`Bar()` | ### Properties diff --git a/core/testdata/format/newlineInTableCell.package.md b/core/testdata/format/newlineInTableCell.package.md index dbc1770a..6ed783b3 100644 --- a/core/testdata/format/newlineInTableCell.package.md +++ b/core/testdata/format/newlineInTableCell.package.md @@ -4,5 +4,5 @@ ### Types -| [A](-a/index.md) | `class A`
There is `long long int` story full of new lines | +| [A](-a/index.md) | There is `long long int` story full of new lines`class A` | diff --git a/core/testdata/format/orderedList.html b/core/testdata/format/orderedList.html index b011b5b3..b84de731 100644 --- a/core/testdata/format/orderedList.html +++ b/core/testdata/format/orderedList.html @@ -17,11 +17,11 @@ -<init> +

<init>

+ -Bar()

Usage instructions:

- +Bar() diff --git a/core/testdata/format/overloads.html b/core/testdata/format/overloads.html index 1545cb9f..8e0693bf 100644 --- a/core/testdata/format/overloads.html +++ b/core/testdata/format/overloads.html @@ -12,12 +12,12 @@ -f +

f

+ -fun f(x: Int): Unit
-fun f(x: String): Unit

Performs an action on x.

- +fun f(x: Int): Unit
+fun f(x: String): Unit diff --git a/core/testdata/format/receiverReference.md b/core/testdata/format/receiverReference.md index 9d36e863..96c6ec61 100644 --- a/core/testdata/format/receiverReference.md +++ b/core/testdata/format/receiverReference.md @@ -2,5 +2,5 @@ ### Extensions for kotlin.String -| [some](some.md) | `fun String.some(): Unit`
Prints [this](some/-this-.md) | +| [some](some.md) | Prints [this](some/-this-.md)`fun String.some(): Unit` | diff --git a/core/testdata/format/sinceKotlin.html b/core/testdata/format/sinceKotlin.html index 1173a8ab..3ca6889a 100644 --- a/core/testdata/format/sinceKotlin.html +++ b/core/testdata/format/sinceKotlin.html @@ -14,11 +14,11 @@ -<init>Since: 1.1 +

<init>

+Since: 1.1 -Since1.1()

Useful

- +Since1.1() diff --git a/core/testdata/format/sinceKotlin.md b/core/testdata/format/sinceKotlin.md index e9b29229..197be48c 100644 --- a/core/testdata/format/sinceKotlin.md +++ b/core/testdata/format/sinceKotlin.md @@ -8,5 +8,5 @@ Useful ### Constructors -| [<init>](-init-.md)Since: `1.1` | `Since1.1()`
Useful | +| [<init>](-init-.md)Since: `1.1` | Useful`Since1.1()` | diff --git a/core/testdata/format/sinceKotlin.package.md b/core/testdata/format/sinceKotlin.package.md index 92197648..fa29e019 100644 --- a/core/testdata/format/sinceKotlin.package.md +++ b/core/testdata/format/sinceKotlin.package.md @@ -4,5 +4,5 @@ ### Types -| [Since1.1](-since1.1/index.md) (Since: `1.1`) | `class Since1.1`
Useful | +| [Since1.1](-since1.1/index.md) (Since: `1.1`) | Useful`class Since1.1` | diff --git a/core/testdata/format/sinceKotlinWide.package.md b/core/testdata/format/sinceKotlinWide.package.md index fd7d45aa..d79d593d 100644 --- a/core/testdata/format/sinceKotlinWide.package.md +++ b/core/testdata/format/sinceKotlinWide.package.md @@ -4,6 +4,6 @@ ### Types -| [Since1.1](-since1.1/index.md) (Since: `1.1`) | `class Since1.1`
Useful | -| [Since1.2](-since1.2/index.md) (Since: `1.2`) | `class Since1.2`
Useful also | +| [Since1.1](-since1.1/index.md) (Since: `1.1`) | Useful`class Since1.1` | +| [Since1.2](-since1.2/index.md) (Since: `1.2`) | Useful also`class Since1.2` | diff --git a/core/testdata/format/summarizeSignatures.md b/core/testdata/format/summarizeSignatures.md index 4f494166..a6755328 100644 --- a/core/testdata/format/summarizeSignatures.md +++ b/core/testdata/format/summarizeSignatures.md @@ -10,5 +10,5 @@ ### Functions -| [foo](foo.md) | `fun any_array.foo(predicate: (`[`T`](foo.md#T)`) -> Boolean): Boolean`
Returns true if foo. | +| [foo](foo.md) | Returns true if foo.`fun any_array.foo(predicate: (`[`T`](foo.md#T)`) -> Boolean): Boolean` | diff --git a/core/testdata/format/summarizeSignaturesProperty.md b/core/testdata/format/summarizeSignaturesProperty.md index 507ad6a5..1070a060 100644 --- a/core/testdata/format/summarizeSignaturesProperty.md +++ b/core/testdata/format/summarizeSignaturesProperty.md @@ -10,5 +10,5 @@ ### Properties -| [foo](foo.md) | `val any_array.foo: Int`
Returns true if foo. | +| [foo](foo.md) | Returns true if foo.`val any_array.foo: Int` | diff --git a/core/testdata/format/tokensInEmphasis.md b/core/testdata/format/tokensInEmphasis.md index 50bd694f..0dd78dec 100644 --- a/core/testdata/format/tokensInEmphasis.md +++ b/core/testdata/format/tokensInEmphasis.md @@ -12,7 +12,7 @@ Another emphasised class. ### Constructors -| [<init>](-init-.md) | `Bar()`
Another emphasised class. | +| [<init>](-init-.md) | Another emphasised class.`Bar()` | ### Functions diff --git a/core/testdata/format/tokensInHeaders.md b/core/testdata/format/tokensInHeaders.md index 293c15cc..31abd971 100644 --- a/core/testdata/format/tokensInHeaders.md +++ b/core/testdata/format/tokensInHeaders.md @@ -24,7 +24,7 @@ Why did the token cross the road? ### Constructors -| [<init>](-init-.md) | `The()`
Why did the token cross the road? | +| [<init>](-init-.md) | Why did the token cross the road?`The()` | ### Functions diff --git a/core/testdata/format/tokensInStrong.md b/core/testdata/format/tokensInStrong.md index e81503e4..8a444c8d 100644 --- a/core/testdata/format/tokensInStrong.md +++ b/core/testdata/format/tokensInStrong.md @@ -12,7 +12,7 @@ ### Constructors -| [<init>](-init-.md) | `Yasc()`
**YASC: [Yasc](./index.md) Yet Another Strong Class** | +| [<init>](-init-.md) | **YASC: [Yasc](./index.md) Yet Another Strong Class**`Yasc()` | ### Functions diff --git a/core/testdata/format/typeAliases.package.md b/core/testdata/format/typeAliases.package.md index d5ed2247..0c083811 100644 --- a/core/testdata/format/typeAliases.package.md +++ b/core/testdata/format/typeAliases.package.md @@ -16,6 +16,6 @@ | [J](-j.md) | `typealias J = `[`H`](-h.md)`<`[`A`](-a/index.md)`>` | | [K](-k.md) | `typealias K = `[`H`](-h.md)`<`[`J`](-j.md)`>` | | [L](-l.md) | `typealias L = (`[`K`](-k.md)`, `[`B`](-b/index.md)`) -> `[`J`](-j.md) | -| [M](-m.md) | `typealias M = `[`A`](-a/index.md)
Documented | +| [M](-m.md) | Documented`typealias M = `[`A`](-a/index.md) | | [N](-n.md) | `typealias ~~N~~ = `[`A`](-a/index.md) | diff --git a/core/testdata/format/typeLink.html b/core/testdata/format/typeLink.html index f25efe3c..7909be23 100644 --- a/core/testdata/format/typeLink.html +++ b/core/testdata/format/typeLink.html @@ -13,7 +13,8 @@ -<init> +

<init>

+ Bar() diff --git a/core/testdata/format/unorderedLists.md b/core/testdata/format/unorderedLists.md index 14143a46..1beb2c64 100644 --- a/core/testdata/format/unorderedLists.md +++ b/core/testdata/format/unorderedLists.md @@ -32,7 +32,7 @@ Rinse options: ### Constructors -| [<init>](-init-.md) | `Bar()`
Usage summary: | +| [<init>](-init-.md) | Usage summary:`Bar()` | ### Properties -- cgit