Jump to content

Issues with line breaks


aahmyu
Go to solution Solved by Luke,

Recommended Posts

aahmyu

Hello,

 

On my Nvidia shield the app is not handling the line breaks in the descriptions at all, and keep displaying the `br` tags which is not nice.

 

The web and android clients are displaying the texts correctly.

 

I'm using latest beta of everything.

 

regards

Link to comment
Share on other sites

  • Solution

Hi, we don't support html tags in overviews so I would suggest removing them.

  • Like 1
Link to comment
Share on other sites

aahmyu

Hi, we don't support html tags in overviews so I would suggest removing them.

Ok thanks, it is not a big of a deal. Just thought I'd let you know.

Link to comment
Share on other sites

daedalus

Hi, we don't support html tags in overviews so I would suggest removing them.

not only that, you don't support any line breaks in the overview

Link to comment
Share on other sites

not only that, you don't support any line breaks in the overview

 

That isn't entirely true.  Whatever is being done here works (at least on Android TV)...

 

5d28ab8d0428f_persondetail.png

Link to comment
Share on other sites

daedalus

so you don't know what works and what not? interesting :unsure:

 

"(at least on Android TV)"

consistency, embys hobbyhorse

 

i've never seen any working one here at the apps i'm using

  • Like 1
Link to comment
Share on other sites

We've already said on this forums, it's not supported, there's your consistency.

 

Until we're able to go through every single app and find a line break convention that will work, we do not consider it supported at all. If you want to hack it use use
, then go right ahead, just be aware it will not work in all apps.

Link to comment
Share on other sites

If you'd like to see this done sooner, then please file a feature request topic and we'll be able to prioritize it based on demand.

Link to comment
Share on other sites

@@daedalus For <br> to work usually requires entity mapping. Some of the Emby apps aren't doing entity mapping. The Roku I know it maps most html tags and removes ones it cannot render. This is the behavior you are seeing. While on Apple TV it would likely not work at all. They likely aren't mapping html entities within labels to their proper characters. Roku does for a few things(during json parsing) and I know <br> is one of those things. So like @@Luke said your mileage will vary. All the web based apps will work with it. Android, Theater, Web, etc...

 

The only real issue will be those iOS devices. They might not be handling this correctly as it isn't a standard. There is no standard for line break/new line. Some use \n. Some use \r. Some use \r\n. Some use <br>. Some use <hr> and want the horizontal ruler line. A standard would be nice. You should make the feature request... lol :)

Edited by speechles
Link to comment
Share on other sites

daedalus

manually replacing fetched line breaks with the <br> tags is neither practical nor preferable

 

if i can add and see line breaks in the edit box, i also should see them displayed

 

 

If you'd like to see this done sooner, then please file a feature request topic and we'll be able to prioritize it based on demand.

i've learned my lesson, won't happen again

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...