Skip to content

Commit

Permalink
Fix prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abigailalexander committed Jun 4, 2024
1 parent d4c3da3 commit b0a6978
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/ui/widgets/EmbeddedDisplay/bobParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ function bobParseFormatType(jsonProp: ElementCompact): string {

export function bobParseFont(jsonProp: ElementCompact): Font {
const opiStyles: { [key: string]: FontStyle } = {
"REGULAR": FontStyle.Regular,
"BOLD": FontStyle.Bold,
"ITALIC": FontStyle.Italic,
"BOLD_ITALIC": FontStyle.BoldItalic
REGULAR: FontStyle.Regular,
BOLD: FontStyle.Bold,
ITALIC: FontStyle.Italic,
BOLD_ITALIC: FontStyle.BoldItalic
};
const fontAttributes = jsonProp["font"]._attributes;
const { family, size, style } = fontAttributes;
Expand Down Expand Up @@ -265,7 +265,8 @@ export function parseBob(

const complexParsers = {
...BOB_COMPLEX_PARSERS,
rules: (rules: Rule[]): Rule[] => opiParseRules(rules, defaultProtocol, false)
rules: (rules: Rule[]): Rule[] =>
opiParseRules(rules, defaultProtocol, false)
};

const displayWidget = parseWidget(
Expand Down
3 changes: 2 additions & 1 deletion src/ui/widgets/EmbeddedDisplay/opiParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,8 @@ export function parseOpi(

const complexParsers = {
...OPI_COMPLEX_PARSERS,
rules: (rules: Rule[]): Rule[] => opiParseRules(rules, defaultProtocol, true)
rules: (rules: Rule[]): Rule[] =>
opiParseRules(rules, defaultProtocol, true)
};

log.debug(compactJSON.display);
Expand Down

0 comments on commit b0a6978

Please sign in to comment.