|
SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Importing XMLTV, how do I get line breaks?
Hi,
I am currently writing a tool to convert the Clickfinder database to the xml format. (Clickfinder is a german tool which provides EPG information using an Access-Database: http://www.tvmovie.de/clickfinder/clickfinder.html ) Everything works fine so far, but I have two problems: 1. I want to insert line breaks into the description. So I tried to add Ascii-Codes #13 + #10 at the end of the line in the XML code and it seems to work. But I do not get empty lines when using #13+#10+#13+#10. Sage seems to simply ignore multiple line breaks and takes only the first one. Any ideas? 2. Same problem with the webserver plugin. Here I do not get any line breaks at all. Is there any character it recognizes and converts to "<br>" ? Thanks for your help, Oliver PS: When the tool works as I expect it to I will post it in the German part of the forum because I think this is only interesting for Sage users in Germany...
__________________
Oliver Kötter ------------ Check this thread for importing German TV Data into SageTV Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz) My avatar shows the world's best composer!!! |
#2
|
||||
|
||||
Oddly, there is no formal support for line breaks in XMLTV, so anything is a bit of a hack...
The XML parser used by the importer strips multiple whitespace (as required by the XML spec) so multiple line breaks become a single line break (you could try something messy such as \r\n.\r\n) The webserver plugin does not recognise anything as a line break and does not translate it to <br/> (I have put it on the todo list!) |
#3
|
||||
|
||||
Thanks for your reply.
Quote:
Quote:
Oliver
__________________
Oliver Kötter ------------ Check this thread for importing German TV Data into SageTV Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz) My avatar shows the world's best composer!!! |
#4
|
||||
|
||||
Quote:
Code:
<tag> text </tag> Code:
<tag>text</tag> |
#5
|
||||
|
||||
Quote:
Code:
<tag>"This is the Text. There was a line break. There was an empty line (two line breaks)." </tag> The parser may not change/ strip anything within the quotes.... Does anybody know if this works? I will try it this evening at home.... Oliver
__________________
Oliver Kötter ------------ Check this thread for importing German TV Data into SageTV Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz) My avatar shows the world's best composer!!! |
#6
|
||||
|
||||
Quotes wont work like this (they don't have special meaning in XML) neither will backslashes or anything like that...
The XML construct for passing preformatted data 'as-is' without any special interpretation is the CDATA structure: Code:
<tag><![CDATA[ This is the Text. There was a line break. There was an empty line (two line breaks).]]> </tag> (useful link: http://www.xml.com/pub/a/w3j/s3.walsh.html) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|