pnp / List-Formatting

List Formatting Samples for use in SharePoint and Microsoft Lists
https://pnp.github.io/List-Formatting/
MIT License
1.71k stars 824 forks source link

text-multiple-hyperlinks doesn't recognize multiple lines #647

Closed mbrivio closed 9 months ago

mbrivio commented 1 year ago

Sample (which sample are you having trouble with)

text-multiple-hyperlinks

What Should Happen

In a multi line of text column, inserting multiple lines on links it should format them individually.

What Actually Happens

I have a document library with a document set and using this custom json to format a multiple line column just gives me a single clickable text (button like) with all the lines I insert in the column concatenated. It takes the string in the first square brackets as text and concatenate all the rest in the href (all other urls and strings in brackets). I tried using the first commit version from the PR (https://github.com/gdk-max/List-Formatting-link-to-documentset/blob/994613c91ea518fc1d79c45841ac06c1dfd943a9/column-samples/text-multiple-hyperlinks/text-multiple-hyperlinks.json) and this one works just fine.

tecchan1107 commented 1 year ago

Hi @mbrivio . If possible, it would be great if you could tell me what values are set for multi-line text. If it is something you don't want or need to disclose, you can replace it with a temporary value.

mbrivio commented 1 year ago

Hi @tecchan1107, well I actually also tried the example values from the readme file with the same results. It is happening in a document set but other than that there's nothing particular about it.

tecchan1107 commented 1 year ago

Thank you for the reply @mbrivio 🙏✨ I'll check and verify again on my end with document sets, etc.!

gdk-max commented 1 year ago

Hi @mbrivio and @tecchan1107 , I am trying to figure out why you have the incorrect result and the only way I can create the issue is by not using [ square brackets. Could you test with these values?

[Learnia]https://www.learnia.be [Office]https://www.office.com [List Formatting Samples]https://github.com/pnp/List-Formatting

tecchan1107 commented 1 year ago

@gdk-max When I used this code, the links were displayed! image

gdk-max commented 1 year ago

@tecchan1107 Yes, I don't see a problem either. It would be useful to test with the values from @mbrivio

tecchan1107 commented 9 months ago

Since there are no replies, I'm closing this issue.