From 9597e0811f16290bcc480d216ba4a4040777c53d Mon Sep 17 00:00:00 2001 From: Orr Kislev Date: Fri, 16 Aug 2024 21:18:52 +0300 Subject: [PATCH] fix for #7181, moved class="norender" from code to div, in documentation for print() and position() --- src/core/environment.js | 8 ++++---- src/dom/dom.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/environment.js b/src/core/environment.js index 5ab17deda2..e4a73ea835 100644 --- a/src/core/environment.js +++ b/src/core/environment.js @@ -30,8 +30,8 @@ let windowPrintDisabled = false; * @method print * @param {Any} contents content to print to the console. * @example - *
- * + *
+ * * function setup() { * // Prints "hello, world" to the console. * print('hello, world'); @@ -39,8 +39,8 @@ let windowPrintDisabled = false; * *
* - *
- * + *
+ * * function setup() { * let name = 'ada'; * // Prints "hello, ada" to the console. diff --git a/src/dom/dom.js b/src/dom/dom.js index d22f8ba901..8a67f10c65 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -2978,8 +2978,8 @@ p5.Element.prototype.html = function(...args) { * @returns {Object} object of form `{ x: 0, y: 0 }` containing the element's position. * * @example - *
- * + *
+ * * function setup() { * let cnv = createCanvas(100, 100); * @@ -2994,8 +2994,8 @@ p5.Element.prototype.html = function(...args) { * *
* - *
- * + *
+ * * function setup() { * let cnv = createCanvas(100, 100); *