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

fix: new lines in cells broke table format #466

Merged
merged 1 commit into from
Apr 19, 2024
Merged

fix: new lines in cells broke table format #466

merged 1 commit into from
Apr 19, 2024

Conversation

10xLaCroixDrinker
Copy link
Contributor

👀What is this pr about?

Fixes #438

🚀 Changes

Fixed

New lines within a cell would put a new line through the whole table, breaking formatting.

🖼 Screenshots

Before

    ┌────────────┬──────────────────────────────────────────┬──────────────────────────────────────────┐
    │        foo │                   bar                    │ baz                                      │
    ├────────────┼──────────────────────────────────────────┼──────────────────────────────────────────┤
habitant morbi tristique senectus et netus et                      │ * Cras ac ligula aliquet, ultrices erat  │
    │            │    malesuada fames ac turpis egestas.    │ quis, laoreet lorem.
    * Mauris rutrum nisi et nisl                                          │
    │            │ Maecenas ut scelerisque felis. Etiam ut  │ sollicitudin semper.
    * Nunc laoreet felis auctor                                          │
    │            │  leo fringilla lacus posuere dignissim   │ diam aliquet semper.
    * Integer aliquet urna                                          │
    │            │                     aliquet eu nulla.

    Etiam placerat ultricies                      │ imperdiet orci pulvinar, at vulputate    │
    │            │ sollicitudin. Maecenas ultrices feugiat  │ ante consectetur.
    * Pellentesque a lectus porttitor,                                          │
    │            │ tempor. Nam non nisi vel diam tristique  │ condimentum lacus non, venenatis lacus.  │
    │            │  commodo. Etiam sit amet nisi sagittis,  │                                          │
    │            │  fringilla tortor sed, efficitur nisl.   │                                          │
    │            │   Maecenas tincidunt lobortis dapibus.   │                                          │
    └────────────┴──────────────────────────────────────────┴──────────────────────────────────────────┘

After

    ┌────────────┬──────────────────────────────────────────┬──────────────────────────────────────────┐
    │        foo │                   bar                    │ baz                                      │
    ├────────────┼──────────────────────────────────────────┼──────────────────────────────────────────┤
    │ Sed dictum │               Pellentesque               │ * Cras ac ligula aliquet, ultrices erat  │
    │            │   habitant morbi tristique senectus et   │ quis, laoreet lorem.                     │
    │            │    netus et malesuada fames ac turpis    │ * Mauris rutrum nisi et nisl             │
    │            │ egestas. Maecenas ut scelerisque felis.  │ sollicitudin semper.                     │
    │            │   Etiam ut leo fringilla lacus posuere   │ * Nunc laoreet felis auctor diam aliquet │
    │            │       dignissim aliquet eu nulla.        │ semper.                                  │
    │            │                                          │ * Integer aliquet urna imperdiet orci    │
    │            │  Etiam placerat ultricies sollicitudin.  │ pulvinar, at vulputate ante consectetur. │
    │            │  Maecenas ultrices feugiat tempor. Nam   │ * Pellentesque a lectus porttitor,       │
    │            │   non nisi vel diam tristique commodo.   │ condimentum lacus non, venenatis lacus.  │
    │            │ Etiam sit amet nisi sagittis, fringilla  │                                          │
    │            │   tortor sed, efficitur nisl. Maecenas   │                                          │
    │            │       tincidunt lobortis dapibus.        │                                          │
    └────────────┴──────────────────────────────────────────┴──────────────────────────────────────────┘

@ayonious
Copy link
Owner

Amazing Idea. Im not sure if this should be just the default behaviour or we should be able to configure this.

@ayonious ayonious merged commit 6b28738 into ayonious:master Apr 19, 2024
@10xLaCroixDrinker 10xLaCroixDrinker deleted the bugfix/new-lines branch April 19, 2024 13:08
@10xLaCroixDrinker
Copy link
Contributor Author

@ayonious do you think you could release this fix?

ayonious pushed a commit that referenced this pull request Jun 20, 2024
## [2.12.1](v2.12.0...v2.12.1) (2024-06-20)

### Bug Fixes

* new lines in cells broke table format ([#466](#466)) ([6b28738](6b28738)), closes [#438](#438)
@ayonious
Copy link
Owner

🎉 This PR is included in version 2.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ayonious
Copy link
Owner

@ayonious do you think you could release this fix?

Done :)

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

Successfully merging this pull request may close these issues.

newlines in cells produce newlines in table
2 participants