Skip to content

Google Chrome v147 introduced a newline regression #135

@matortheeternal

Description

@matortheeternal

It seems like something changed in v147 of chrome. My app which was previously using codejar on a <pre> element saw newlines stop working. After investigation I found that <br> tags were being inserted when pressing return instead of newline characters: \n.

I discovered that I could resolve this issue by making the CodeJar container a <div> tag instead of a <pre> tag.

This was a surprise to me, so I am reporting it here so other developers can be made aware. Perhaps the CodeJar documentation should add a note that editors must be <div> tags, and that browser behavior with other tags is not supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions