Closed Seranno closed 1 year ago
HI @Seranno, Is your installation with or without composer? What calendarize and TYPO3 version are you using?
Hey @okmiim , Hey @Seranno
I added a test case for this. First of all, there is a wrong/strange line in the ISC. The "DSMD"-line. I added the ICS to a test file: https://github.com/lochmueller/calendarize/blob/master/Tests/Unit/Ical/ICalEventTest.php#L429 You can checkout the current master and run the test with "composer tool:phpunit:tmp".
Currently, the test has a wrong assertion, so he test is green: https://github.com/lochmueller/calendarize/blob/master/Tests/Unit/Ical/ICalEventTest.php#L487 but the Dissect integration AND the VObject are truncated the spaces.
I don't found the problem in EXT:calendarize in the first view, so I think it is a problem of the source ICS or the using ICS Parser Libs.
Any hints?
Regards, Tim
@lochmueller The committed test is missing the trailing white spaces from the example (are removed by php-cs-fixer "risky"). Also, the expected string is wrong.
I put up better tests in f918732e77f87c1cfbc8dfb3ef5b73ce7e909214. It only fails for the Dissect (installation without composer):
--- Expected
+++ Actual
@@ @@
-'This is a long description that exists on a long line.'
+'This is a longdescription that exists on a long line.'
The trimming happens here: https://github.com/lochmueller/calendarize/blob/956116f224cfd7e4e635abd947fa4b05d721ebd3/Resources/Private/Php/ICalDissect/src/JMBTechnologyLimited/ICalDissect/ICalParser.php#L46-L52
Thanks for the fix :-)
Wow, that was fast :D Many thanks for the fix ! It worked.
The ICS Import trough the Scheduling module has a small issue with the handling of spaces before and after a newline for the description field. The new line chars are filtered ([CR;LF] in Notepad++) : OK. But the spaces are truncated so the 2 words are merged.
Backend
Frontend
Small example of my ICS :