Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow columns to have the same font size #97

Open
vlsi opened this issue Jun 29, 2020 · 0 comments
Open

Allow columns to have the same font size #97

vlsi opened this issue Jun 29, 2020 · 0 comments

Comments

@vlsi
Copy link

vlsi commented Jun 29, 2020

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant