[TASK] Cleanup FSC/CSC typoscript 95/52095/2
authorJosef Glatz <josefglatz@gmail.com>
Sun, 19 Mar 2017 21:16:28 +0000 (22:16 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 20 Mar 2017 14:06:51 +0000 (15:06 +0100)
* remove/update inline comments
* improve legibility by proper indentation and CGL

Resolves: #80346
Releases: master
Change-Id: I51207c0a54b18f78b1a0dd4313b398908ea2f021
Reviewed-on: https://review.typo3.org/52095
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/css_styled_content/Configuration/TypoScript/Helper/ParseFunc.txt
typo3/sysext/fluid_styled_content/Configuration/TypoScript/Helper/ParseFunc.txt

index 26ce122..08d646e 100644 (file)
@@ -49,27 +49,27 @@ styles.content.parseFunc < lib.parseFunc
 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
 lib.parseFunc_RTE < lib.parseFunc
 lib.parseFunc_RTE {
-    //  makelinks >
-    # Processing <table> and <blockquote> blocks separately
+    # Processing <table> blocks separately
     externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre
     externalBlocks {
-        # The blockquote content is passed into parseFunc again...
-        table.stripNL=1
-        table.stdWrap.HTMLparser = 1
-        table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
-            default = contenttable
-            always = 1
-            list = contenttable
-        }
-        table.stdWrap.HTMLparser.keepNonMatchedTags = 1
-        table.HTMLtableCells=1
-        table.HTMLtableCells {
-            # Recursive call to self but without wrapping non-wrapped cell content
-            default.stdWrap {
-                parseFunc =< lib.parseFunc_RTE
-                parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
+        table {
+            stripNL = 1
+            stdWrap.HTMLparser = 1
+            stdWrap.HTMLparser.tags.table.fixAttrib.class {
+                default = contenttable
+                always = 1
+                list = contenttable
+            }
+            stdWrap.HTMLparser.keepNonMatchedTags = 1
+            HTMLtableCells = 1
+            HTMLtableCells {
+                # Recursive call to self but without wrapping non-wrapped cell content
+                default.stdWrap {
+                    parseFunc =< lib.parseFunc_RTE
+                    parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
+                }
+                addChr10BetweenParagraphs = 1
             }
-            addChr10BetweenParagraphs=1
         }
         div {
             stripNL = 1
index 2fecbe1..0757171 100644 (file)
@@ -50,10 +50,9 @@ lib.parseFunc {
 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
 lib.parseFunc_RTE < lib.parseFunc
 lib.parseFunc_RTE {
-    # Processing <table> and <blockquote> blocks separately
+    # Processing <ol>, <ul> and <table> blocks separately
     externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre
     externalBlocks {
-        # The blockquote content is passed into parseFunc again...
         ol {
             stripNL = 1
             stdWrap.parseFunc = < lib.parseFunc