* Fixed bug #8009: Wrong TS-Code because appendString cannot handle multiline strings
authorSebastian Kurfürst <sebastian.kurfuerst@typo3.org>
Thu, 3 Apr 2008 23:41:54 +0000 (23:41 +0000)
committerSebastian Kurfürst <sebastian.kurfuerst@typo3.org>
Thu, 3 Apr 2008 23:41:54 +0000 (23:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3530 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tsparser.php
typo3/sysext/css_styled_content/static/setup.txt

index de4b183..b44efc4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-03  Michael Stucki  <michael@typo3.org>
+
+       * Fixed bug #8009: Wrong TS-Code because appendString cannot handle multiline strings
+
+2008-04-03  Patrick Broens  <patrick@patrickbroens.nl>
+
+       * Feature #7854: Docheader: Moving function menu to the left in second row
+
 2008-04-03  Thomas Hempel  <thomas@typo3-unleashed.net>
 
        * Feature #6896: TCA eval on TEXT field does not work
index 3b7f756..cb41644 100755 (executable)
@@ -256,6 +256,12 @@ class t3lib_TSparser {
                                                                        $tsFuncArg = $match[2];
                                                                        list ($currentValue) = $this->getVal($objStrName,$setup);
 
+                                                                       $tsFuncArg = str_replace(
+                                                                               array('\\\\', '\n','\t'),
+                                                                               array('\\', chr(10),chr(9)),
+                                                                               $tsFuncArg
+                                                                       );
+
                                                                        switch ($tsFunc)        {
                                                                                case 'prependString':
                                                                                        $newValue = $tsFuncArg . $currentValue;
index 04990ac..6b55b6d 100755 (executable)
@@ -1535,9 +1535,7 @@ plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE (
 # new IMAGE features with last row configuration
 [compatVersion = 4.2.0]
 
-plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE := appendString(
-       DIV.csc-textpic DIV.csc-textpic-imagerow-last { margin-bottom: 0; }
-)
+plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE := appendString(\nDIV.csc-textpic DIV.csc-textpic-imagerow-last { margin-bottom: 0; })
 
 tt_content.image.20.rendering {
        dl.imageLastRowStdWrap.dataWrap = <div class="csc-textpic-imagerow csc-textpic-imagerow-last" style="width:{register:rowwidth}px;"> | </div>