Newlines (1 Viewer)

matejdro

Portal Pro
May 28, 2010
361
16
Home Country
Slovenia Slovenia
How should newlines be formatted in XMLTV <desc> tag to also make them displayed inside MP?

Regular newlines (just \n) do not appear to work. Do I need to add HTML tags like <br />? Wouldn't that conflict with XML?
 

deadmonty

MP Donator
  • Premium Supporter
  • February 7, 2009
    59
    25
    65
    Red Lodge, Suffolk, England
    Home Country
    United Kingdom United Kingdom
    New line codes are:

    1. Carriage return: &#xD;
    2. Line feed: &#xA;
    You could also format the xml using CDATA, like this:

    <desc><![CDATA[ stuff goes in here
    then a new line
    then the CDATA end tag ]]></desc>

    CDATA preserves text formatting.
     

    Users who are viewing this thread

    Similar threads

    I had the same issue and found the executable under C:\ProgramData\Team MediaPortal\MediaPortal\skin\Titan\BasicHome.Editor\TitanEditor.exe Only the shortcut was missing.
    I had the same issue and found the executable under C:\ProgramData\Team...
    Hi all, Not a rant, more a sharing of experience (maybe hoping to get some clarification on which wrong turn I took) It has been...
    Replies
    9
    Views
    2K
    So most probably it was your ip blacklisted and cleared again. Some websites are blocking for hours and some are for days. Ok then, enjoy :)
    So most probably it was your ip blacklisted and cleared again. Some websites are blocking for hours and some are for days. Ok then...
    Hi everyone. My name is Kivanc and I am the developer of Tempest EPG Generator which is a single php file xmltv formatted epg...
    Replies
    66
    Views
    12K
    MP1 MP2 MP2 - V2.5 No genres after upgrade to 2.5 DE
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and music are part of the NET6 version as for NET4. If you have issues with it further infos would be good.
    You need to check the wiki for TVMosaic, you have recordings as source available once TVM is installed. And of course images and...
    Make sure that your system (Windows, codecs and drivers) is up to date, matching the Requirements and you've filled in your System...
    Replies
    10
    Views
    1K
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    40
    Views
    4K
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    967
    Top Bottom