Skip to content

Commit e1f502d

Browse files
authored
Merge branch 'main' into docs-improvements
2 parents 38e2ab5 + 5dd7361 commit e1f502d

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

docs/yuidoc-p5-theme/assets/js/reference.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/accessibility/outputs.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ import p5 from '../core/main';
9191
*
9292
* <div>
9393
* <code>
94+
* function setup() {
95+
* createCanvas(100, 100);
96+
* }
97+
*
9498
* function draw() {
9599
* // Add the text description.
96100
* textOutput();
@@ -111,6 +115,10 @@ import p5 from '../core/main';
111115
*
112116
* <div>
113117
* <code>
118+
* function setup() {
119+
* createCanvas(100, 100);
120+
* }
121+
*
114122
* function draw() {
115123
* // Add the text description and
116124
* // display it for debugging.
@@ -235,6 +243,10 @@ p5.prototype.textOutput = function(display) {
235243
*
236244
* <div>
237245
* <code>
246+
* function setup() {
247+
* createCanvas(100, 100);
248+
* }
249+
*
238250
* function draw() {
239251
* // Add the grid description.
240252
* gridOutput();
@@ -255,6 +267,10 @@ p5.prototype.textOutput = function(display) {
255267
*
256268
* <div>
257269
* <code>
270+
* function setup() {
271+
* createCanvas(100, 100);
272+
* }
273+
*
258274
* function draw() {
259275
* // Add the grid description and
260276
* // display it for debugging.

src/typography/p5.Font.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ p5.Font = class {
362362
x = xOriginal;
363363
let line = lines[i];
364364

365-
line = line.replace('\t', ' ');
365+
line = line.replace(/\t/g, ' ');
366366
const glyphs = this._getGlyphs(line);
367367

368368
for (let j = 0; j < glyphs.length; j++) {

0 commit comments

Comments
 (0)