Skip to content

Commit

Permalink
🩹 Small fix in text example
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfstx committed Jan 18, 2025
1 parent 73b2fad commit 0e95464
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/src/text.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { readFile, writeFile } from 'node:fs/promises';

import { PdfMaker, rows, span, text } from '../../src/index.ts';
import { PdfMaker, rows, span, text } from 'pdfmkr';

const document = {
defaultStyle: {
Expand Down Expand Up @@ -64,9 +64,9 @@ const document = {
// Text alignment
rows(
[
span('Text can be left-aligned …', { textAlign: 'left' }),
span('centered,', { textAlign: 'center' }),
span('… or right-aligned', { textAlign: 'right' }),
text('Text can be left-aligned …', { textAlign: 'left' }),
text('centered,', { textAlign: 'center' }),
text('… or right-aligned', { textAlign: 'right' }),
],
{ margin: { y: 10 } },
),
Expand Down

0 comments on commit 0e95464

Please sign in to comment.