Skip to content

Commit

Permalink
style: prettify src/diagrams/block/blockDB.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisklink committed Oct 10, 2024
1 parent 2bedd0e commit 9301a57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mermaid/src/diagrams/block/blockDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config = getConfig();

let classes = {} as Record<string, ClassDef>;

const sanitizeText = (txt:string) => common.sanitizeText(txt, config);
const sanitizeText = (txt: string) => common.sanitizeText(txt, config);

/**
* Called when the parser comes across a (style) class definition
Expand Down Expand Up @@ -93,7 +93,7 @@ const populateBlockDatabase = (_blockList: Block[] | Block[][], parent: Block):
const children = [];
for (const block of blockList) {
if (block.label) {
block.label = sanitizeText(block.label);
block.label = sanitizeText(block.label);
}
if (block.type === 'classDef') {
addStyleClass(block.id, block.css);
Expand Down

0 comments on commit 9301a57

Please sign in to comment.