code-surfer icon indicating copy to clipboard operation
code-surfer copied to clipboard

Allow columns to have the same font size

Open vlsi opened this issue 5 years ago • 0 comments

The following produces columns with different font sizes. It would be nice to be able to use the same font size.

So far I add trailing whitespace to make the longest lines have the same length.

<CodeSurferColumns>

<Step>

```kotlin
val helloWorld = "Hello world"
val world = "world"

@Benchmark
fun junit4() {
    Assert.assertTrue(
        "$helloWorld should contain $world",
        helloWorld.contains(world)
    )
}
```

```kotlin
val helloWorld = "Hello world"
val world = "world"

@Benchmark
fun junit5() {
    Assertions.assertTrue(helloWorld.contains(world)) {
        "$helloWorld should contain $world"
    }
}
```

</Step>

</CodeSurferColumns>

vlsi avatar Jun 29 '20 08:06 vlsi