preserve leading indentation in KDoc code blocks
#KT-9933 Fixed
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
*
|
||||
* ```
|
||||
* Code block
|
||||
* Second line
|
||||
* Second line
|
||||
*
|
||||
* Third line
|
||||
* ```
|
||||
*/
|
||||
fun testMethod() {
|
||||
@@ -20,5 +22,7 @@ fun test() {
|
||||
//INFO: <b>public</b> <b>fun</b> testMethod(): Unit <i>defined in</i> root package<p>Some documentation.</p>
|
||||
//INFO: <pre><code>
|
||||
//INFO: Code block
|
||||
//INFO: Second line
|
||||
//INFO: Second line
|
||||
//INFO:
|
||||
//INFO: Third line
|
||||
//INFO: </code><pre>
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public abstract class AbstractQuickDocProviderTest extends KotlinLightCodeInsigh
|
||||
|
||||
File testDataFile = new File(path);
|
||||
String textData = FileUtil.loadFile(testDataFile, true);
|
||||
List<String> directives = InTextDirectivesUtils.findLinesWithPrefixesRemoved(textData, "INFO:");
|
||||
List<String> directives = InTextDirectivesUtils.findLinesWithPrefixesRemoved(textData, false, "INFO:");
|
||||
|
||||
if (directives.isEmpty()) {
|
||||
throw new FileComparisonFailure(
|
||||
|
||||
Reference in New Issue
Block a user