jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/327123 )
Change subject: [linter] Whitespace cleanup
......................................................................
[linter] Whitespace cleanup
Change-Id: Ieaf6169b58533581fceb8ad34c75db4a1878ff23
---
M lib/wt2html/pp/handlers/linter.js
1 file changed, 45 insertions(+), 50 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/lib/wt2html/pp/handlers/linter.js
b/lib/wt2html/pp/handlers/linter.js
index 2714d49..ef21744 100644
--- a/lib/wt2html/pp/handlers/linter.js
+++ b/lib/wt2html/pp/handlers/linter.js
@@ -1,15 +1,15 @@
/*
-* DOM pass that walks the DOM tree and places a call to logger
-* with logtype 'lint/*' to log the following scenarios:
-*
-* 1. Treebuilder fixups
-* 2. Fostered content
-* 3. Ignored table attributes
-* 4. Multi-template blocks
-* 5. Mixed content in template markup
-* 6. Obsolete HTML tags
-* 7. Self-closed HTML tags
-*/
+ * DOM pass that walks the DOM tree and places a call to logger
+ * with logtype 'lint/*' to log the following scenarios:
+ *
+ * 1. Treebuilder fixups
+ * 2. Fostered content
+ * 3. Ignored table attributes
+ * 4. Multi-template blocks
+ * 5. Mixed content in template markup
+ * 6. Obsolete HTML tags
+ * 7. Self-closed HTML tags
+ */
'use strict';
var DU = require('../../../utils/DOMUtils.js').DOMUtils;
@@ -26,7 +26,6 @@
* |}
*
https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Transclusion_content
*/
-
function logTransclusions(env, node, dp, tplInfo) {
var dmw = DU.getDataMw(node);
if (dmw) {
@@ -54,13 +53,13 @@
}
/*
-* Log Treebuilder fixups marked by dom.markTreeBuilderFixup.js
-* It handles the following scenarios:
-*
-* 1. Unclosed end tags
-* 2. Unclosed start tags
-* 3. Stripped tags
-*/
+ * Log Treebuilder fixups marked by dom.markTreeBuilderFixup.js
+ * It handles the following scenarios:
+ *
+ * 1. Unclosed end tags
+ * 2. Unclosed start tags
+ * 3. Stripped tags
+ */
function logTreeBuilderFixup(env, c, dp, tplInfo) {
var cNodeName = c.nodeName.toLowerCase();
var dsr = dp.dsr;
@@ -131,16 +130,16 @@
}
/*
-* Log ignored table attributes.
-* This handles cases like:
-*
-* {|
-* |- foo
-* | bar
-* |}
-*
-* Here foo gets ignored and is found in the data-parsoid of <tr> tags.
-*/
+ * Log ignored table attributes.
+ * This handles cases like:
+ *
+ * {|
+ * |- foo
+ * | bar
+ * |}
+ *
+ * Here foo gets ignored and is found in the data-parsoid of <tr> tags.
+ */
function logIgnoredTableAttr(env, c, dp, tplInfo) {
var dsr;
var templateInfo;
@@ -184,17 +183,17 @@
}
/*
-* Log fostered content marked by markFosteredContent.js
-* This will log cases like:
-*
-* {|
-* foo
-* |-
-* | bar
-* |}
-*
-* Here 'foo' gets fostered out.
-*/
+ * Log fostered content marked by markFosteredContent.js
+ * This will log cases like:
+ *
+ * {|
+ * foo
+ * |-
+ * | bar
+ * |}
+ *
+ * Here 'foo' gets fostered out.
+ */
function logFosteredContent(env, node, dp, tplInfo) {
var fosteredSRC = node.innerHTML;
var nextSibling = node.nextSibling;
@@ -219,11 +218,9 @@
}
/*
-*
-* Log obsolete HTML tags like BIG, CENTER, FONT, STRIKE, and TT
-* See - http://www.w3.org/TR/html5/obsolete.html#non-conforming-features
-*
-*/
+ * Log obsolete HTML tags like BIG, CENTER, FONT, STRIKE, and TT
+ * See - http://www.w3.org/TR/html5/obsolete.html#non-conforming-features
+ */
function logObsoleteHTMLTags(env, c, dp, tplInfo) {
var re = /^(BIG|CENTER|FONT|STRIKE|TT)$/;
@@ -243,11 +240,9 @@
}
/*
-*
-* Log bogus (=unrecognized) image options
-* See - https://www.mediawiki.org/wiki/Help:Images#Syntax
-*
-*/
+ * Log bogus (=unrecognized) image options
+ * See - https://www.mediawiki.org/wiki/Help:Images#Syntax
+ */
function logBogusImageOptions(env, c, dp, tplInfo) {
if (DU.isGeneratedFigure(c)) {
var items = [];
--
To view, visit https://gerrit.wikimedia.org/r/327123
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ieaf6169b58533581fceb8ad34c75db4a1878ff23
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits