question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add capability for multi-line items

See original GitHub issue

Sometimes you want an item to be a block of text. Using a special character like \n doesn’t follow Margin’s rules of plain text readability.

Maybe something like a pipe | character that enforces strict text blocks:

Favorite Quotes

    | Be thankful for what you have; you’ll end up having more. 
    | If you concentrate on what you don’t have, you will never, ever have enough. 
    |
    | - Oprah Winfrey

    | You can discover more about a person in an hour of play than in a year of conversation.
    |
    | - Plato

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
burlesonacommented, May 11, 2020

I disagree with this for two reasons:

First, for the human, I would very much like to be able to make simple lists like…

Shoe Brands:
  Nike
  Adidas
  Puma

… without being required to leave extra empty lines or delimiters between things to indicate they are separate items.

Second, from the point of view of trying to balance this being simple for both humans and computers, I would argue that the spec should instead be strict, that an item exists as one line only, terminated by a \n. Nearly every program that displays text can (and does) word wrap, and many allow you to define a custom word wrapping. I don’t think the added complexity and ambiguity is worth the benefit of supporting manual line breaks without splitting items.

1reaction
benjaminwilcommented, May 20, 2020

After exploring this some more, I think that I agree.

I think it would be reasonable for an application that is concerned with long-form content to find their own way to join multiple items post-Margin.

JSON arrays seem to preserve ordering, too, so an array of children would be reproducible over and over again in different applications. 💯

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are multiline items in Salesforce?
Salesforce runs user-defined validation rules if multiline items were created, such as quote line items and opportunity line items.
Read more >
Can I set some variables in multiple line text field? - ServiceNow
Please refer the 2nd example in groovy section in below KB and you can add multi line text accordingly. Please refer this KB...
Read more >
WPF Datagrid -- editable combobox with multi-line capability?
Try This below will allow you to add multiline input in textbox inside a combobox. Add the style to the Resources.
Read more >
Multiline text field with attach images
In that we have a capability to add images within the multi line text. ... functionality to attach multiple images to a SP...
Read more >
Apply Multi-Line Changes in QuoteWerks - YouTube
Making edits in your quotes has never been easier or more efficient. This video demonstrates how you can select multiple lines and change ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found