[BUGFIX] Wrong top/bottom margin rendering in CSC 87/21787/2
authorPatrick Broens <patrick@patrickbroens.nl>
Thu, 25 Apr 2013 12:38:50 +0000 (14:38 +0200)
committerBenjamin Mack <benni@typo3.org>
Tue, 2 Jul 2013 09:49:07 +0000 (11:49 +0200)
When a top or bottom margin has been chosen together with section_frame
"no frame" -> 66, no entry is made in the temporary stylesheet.

This patch solves this issue by changing the stdWrap variable to
classStdWrap for the method renderSpace().

Change-Id: Iee6c98537e2a4a8c917dfd450289f26ce50e3ca9
Fixes: #47403
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/20155
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
Reviewed-on: https://review.typo3.org/21787

typo3/sysext/css_styled_content/static/setup.txt

index a72713b..def8c02 100644 (file)
@@ -539,7 +539,7 @@ tt_content.stdWrap {
                                        userFunc = tx_cssstyledcontent_pi1->renderSpace
                                        space = before
                                        constant = {$content.spaceBefore}
-                                       stdWrap {
+                                       classStdWrap {
                                                wrap = csc-space-before-|
                                        }
                                }
@@ -560,7 +560,7 @@ tt_content.stdWrap {
                                10 {
                                        space = after
                                        constant = {$content.spaceAfter}
-                                       stdWrap {
+                                       classStdWrap {
                                                wrap = csc-space-after-|
                                        }
                                }