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

Screenshot formatting is broken for hanging indent code #1495

Open
aidansunbury opened this issue Sep 20, 2023 · 2 comments
Open

Screenshot formatting is broken for hanging indent code #1495

aidansunbury opened this issue Sep 20, 2023 · 2 comments
Labels

Comments

@aidansunbury
Copy link

Describe the bug
When writing code with hanging indents (first line is at the margin, subsequent lines are indented), the screenshot exports are not formatted in the same way as they appear in the carbon editor.

This may also just be an issue with the editor frame not wrapping code when it should. Making the editor frame slightly wider normally fixes the issue.

To Reproduce
Write any code in the editor using hanging indents and export it. I tested that both the copy to clipboard and the download image exports were broken.

Screenshots
Screenshot 2023-09-20 at 2 25 50 PM

View in Editor

image

Exported image

@zach28attack
Copy link

I would like to work on this. If possible please assign me.

@mxschmitt
Copy link

I can repro, e.g.:

import { expect, test } from '@nuxt/test-utils/playwright'

test.use({
  nuxt: {
    rootDir: fileURLToPath(new URL('..', import.meta.url))
  }
})

test('test', async ({ page, goto }) => {
  await goto('/', { waitUntil: 'hydration' })
  await expect(page.getByRole('heading')).toHaveText('Welcome to Playwright!')
})

produces:

carbon (3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants