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
    67
    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

    MP1 MP2 EPG woes DE
    Yes, I saw that. Was beyond my understanding, however. Didn't see how to set that up. I'm a relative neophyte, who's done hardly any command-line coding. To be more specific: I don't see, under either "Grabbing Listings" or in the "First use example," where it is designated just where on one's C drive the tv.xml file is...
    Yes, I saw that. Was beyond my understanding, however. Didn't see how to set that up. I'm a relative neophyte, who's done hardly...
    Does anyone know how to “fix” the MC2XML application, and hopefully permanently? Mine stopped working sometime after September 29...
    Replies
    16
    Views
    2K
    Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
    Thanks very much, Jasmeet. Worked. But note that this setting has moved, apparently, to: Settings > TV (not Plugins)
    I recently did a fresh install of 2.5 on a new Windows 11 PC. My previous (Windows 10) version of 2.5 gave my broadcast TV channel...
    Replies
    2
    Views
    3K
    I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D from the tags. Not that important, so I dont upload any new file. A little sad about the end time, but nothing to do about it.
    I agree about the dash instead of colon on the LIVE thing. I did a little change to get the current program, just removed the D...
    I'm trying to develop a new WebEPG grabber for sweden, but I got a few problem in parsing the html-file to get all programs. In...
    Replies
    9
    Views
    4K
    MP1 MP2 Picture-in-picture DE
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many tries, and it’s not clear what I am doing that makes it work on those occasions when it does. Cannot find guidance on the site. Thanks, N. Again, if anyone knows how to do this, would be much...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Can anyone tell me the step-by-step procedure for bringing up a second channel in pip mode? I can only do it sometimes, after many...
    Replies
    0
    Views
    2K
    • Sticky
    Many many years ago, I opened a bug report after I got that same message but I never got a reply. The reason was I had unchecked the Windows Media Player item in Windows 10 Control Panel > Program and Features > Turn Windows features on or off as I didn't need it, without thinking that it was needed by MediaPortal. I kept the "Media...
    Many many years ago, I opened a bug report after I got that same message but I never got a reply. The reason was I had unchecked...
    We have just released MediaPortal 1.39 - Endurance x86 and x64 version. Highlights of this release Bugfixes: [MP1-5257] - Skin...
    Replies
    13
    Views
    1K
    Top Bottom