Skip to content

Commit

Permalink
fix for processing#7181, moved class="norender" from code to div, in …
Browse files Browse the repository at this point in the history
…documentation for print() and position()
  • Loading branch information
orrkislev committed Aug 16, 2024
1 parent bd8827b commit 9597e08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/core/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ let windowPrintDisabled = false;
* @method print
* @param {Any} contents content to print to the console.
* @example
* <div>
* <code class="norender">
* <div class="norender">
* <code>
* function setup() {
* // Prints "hello, world" to the console.
* print('hello, world');
* }
* </code>
* </div>
*
* <div>
* <code class="norender">
* <div class="norender">
* <code>
* function setup() {
* let name = 'ada';
* // Prints "hello, ada" to the console.
Expand Down
8 changes: 4 additions & 4 deletions src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
* <div>
* <code class='norender'>
* <div class='norender'>
* <code>
* function setup() {
* let cnv = createCanvas(100, 100);
*
Expand All @@ -2994,8 +2994,8 @@ p5.Element.prototype.html = function(...args) {
* </code>
* </div>
*
* <div>
* <code class='norender'>
* <div class='norender'>
* <code>
* function setup() {
* let cnv = createCanvas(100, 100);
*
Expand Down

0 comments on commit 9597e08

Please sign in to comment.