Luke 37188 Posted August 22, 2020 Share Posted August 22, 2020 I tested this and it worked fine. Using the metadata editor I added the br tag, which then resulted in this: Link to comment Share on other sites More sharing options...
Guest ES_218 Posted August 22, 2020 Share Posted August 22, 2020 Thanks for the reply. I prefer not to use the metadata editor, as it does not fit with my workflow. I would like to edit metadata in the NFO files with a text editor, and then have the changes reflected with a library refresh. Link to comment Share on other sites More sharing options...
Happy2Play 8337 Posted August 22, 2020 Share Posted August 22, 2020 52 minutes ago, ES_218 said: Thanks for the reply. I prefer not to use the metadata editor, as it does not fit with my workflow. I would like to edit metadata in the NFO files with a text editor, and then have the changes reflected with a library refresh. Editing manually ensuring <br/> is within <[[CDATA]]> examples Quote <plot><![CDATA[Fifteen years after murdering his sister on Halloween Night 1963, <br/>Michael Myers escapes from a mental hospital and returns to the small town of Haddonfield, Illinois to kill again.]]></plot> Quote <review><![CDATA[This <br/>is <br/>a <br/>test]]></review> Both examples were edited in notepad++ and Emby imported the changes upon Scan. Link to comment Share on other sites More sharing options...
Guest ES_218 Posted August 22, 2020 Share Posted August 22, 2020 (edited) Yes, this works in Emby. However, as with some other suggestions earlier in this thread, it does not work in Kodi. Is there really no solution that works for both? Edited August 22, 2020 by ES_218 Link to comment Share on other sites More sharing options...
Happy2Play 8337 Posted August 23, 2020 Share Posted August 23, 2020 (edited) From the searching I have done I do not see a way for both programs to read the same metadata and get the same results. Edited August 23, 2020 by Happy2Play Link to comment Share on other sites More sharing options...
Luke 37188 Posted August 23, 2020 Share Posted August 23, 2020 How does Kodi handle cdata? Link to comment Share on other sites More sharing options...
Guest ES_218 Posted August 26, 2020 Share Posted August 26, 2020 On 8/22/2020 at 7:08 PM, Luke said: How does Kodi handle cdata? Kodi will take the following input <review><![CDATA[This <br/>is <br/>a <br/>test]]></review> and display it as This <br/>is <br/>a <br/>test Link to comment Share on other sites More sharing options...
Luke 37188 Posted August 26, 2020 Share Posted August 26, 2020 Ok I've pushed an update to the nfo plugin to switch it to use cdata. Link to comment Share on other sites More sharing options...
WayneNotBruce 2 Posted February 23, 2023 Share Posted February 23, 2023 On 9/2/2018 at 10:41 AM, Happy2Play said: Custom css /*Overview line break*/ #itemDetailPage p.overview {white-space: pre-wrap; } normal css Hello, sorry to reply to this old post. I'd like to add auto line break as well. I tried with your code but it doesn't work. Is there a new CSS code we can use? Pressing the "more" button on the right side just returns me with a wall text as below. Thank you. Link to comment Share on other sites More sharing options...
Happy2Play 8337 Posted February 23, 2023 Share Posted February 23, 2023 6 hours ago, WayneNotBruce said: Hello, sorry to reply to this old post. I'd like to add auto line break as well. I tried with your code but it doesn't work. Is there a new CSS code we can use? Pressing the "more" button on the right side just returns me with a wall text as below. Thank you. Something like this /*Overview line breaks*/ div.overview-text {white-space: pre-wrap;} div.topDetailsContainer .overview-text {display: block;} Link to comment Share on other sites More sharing options...
WayneNotBruce 2 Posted February 24, 2023 Share Posted February 24, 2023 (edited) 20 hours ago, Happy2Play said: Something like this /*Overview line breaks*/ div.overview-text {white-space: pre-wrap;} div.topDetailsContainer .overview-text {display: block;} Thanks. It works wonderfully on browser. I guess it doesn't work in Emby desktop client right? Are you aware of any program that can search and replace line breaks with <br/> ? Seeing that it's a popular function being requested for a few times, maybe emby can do that for us in the future? Manually adding <br/> (or other line break code) in each overview is kinda going against the grain ngl... Edited February 24, 2023 by WayneNotBruce 1 Link to comment Share on other sites More sharing options...
GrimReaper 3328 Posted February 24, 2023 Share Posted February 24, 2023 7 minutes ago, WayneNotBruce said: I guess it doesn't work in Emby desktop client right? Nope, custom CSS applies to local Web app only, no other client app. 7 minutes ago, WayneNotBruce said: Are you aware of any program that can search and replace line breaks with <br/> ? Seeing that it's a popular function being requested for a few times, maybe emby can do that for us in the future? Related FR discussion here: It basically comes down to: On 9/8/2019 at 9:11 AM, ebr said: Unfortunately, there is no "universal" line break character or sequence so anything you put in there will fail to work and possibly display very poorly on some platforms. On 3/29/2020 at 2:29 PM, Luke said: In the web app you can use a tag for a line break but it's not supported in all apps yet. Link to comment Share on other sites More sharing options...
WayneNotBruce 2 Posted March 2, 2023 Share Posted March 2, 2023 On 2/24/2023 at 11:41 PM, GrimReaper said: Nope, custom CSS applies to local Web app only, no other client app. Related FR discussion here: It basically comes down to: Maybe there should be a client side function letting users determine which line break codes to use or replace? Idk if it's possible tho. Just an idea only. Link to comment Share on other sites More sharing options...
StuBailey 28 Posted January 31 Share Posted January 31 (edited) <br/> works for me on the web and tv display. but if the metadata is some 10 lines or so of screen space, it no longer works, but <br><br/> works on everything I tried. Edited January 31 by StuBailey Link to comment Share on other sites More sharing options...
rbjtech 4314 Posted January 31 Share Posted January 31 FYI - As part of the MediaInfo Plugin - I added an option to automatically convert a \n to an \br in the overview - as this annoyed me as well. The only issue is, as mentioned above, is it only works on some clients - AndroidTV for example displays the <\br> so it looks horrid. We'll have to wait for emby to adopt it across all clients and then I'll back convert my files It's especially useful when 'lists' are involved - as in the example below, where before this would be a wall of illegable text ... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now