Skip to content

Commit

Permalink
Strip all of the indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <[email protected]>
  • Loading branch information
wcchang1115 committed Mar 19, 2024
1 parent 5a2d649 commit 3a85498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/src/components/check/CheckDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { useLocation } from "wouter";
import { CheckDescription } from "./CheckDescription";
import { RowCountDiffResultView } from "../rowcount/RowCountDiffResultView";
import { ProfileDiffResultView } from "../profile/ProfileDiffResultView";
import { stripIndent } from "common-tags";
import { stripIndents } from "common-tags";
import { useClipBoardToast } from "@/lib/hooks/useClipBoardToast";
import { buildTitle, buildDescription, buildQuery } from "./check";
import SqlEditor from "../query/SqlEditor";
Expand Down Expand Up @@ -350,7 +350,7 @@ export const CheckDetail = ({ checkId }: CheckDetailProps) => {
};

function buildMarkdown(check: Check) {
return stripIndent`
return stripIndents`
<details><summary>${buildTitle(check)}</summary>
${buildBody(check)}
Expand Down
4 changes: 2 additions & 2 deletions js/src/components/check/CheckPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { AddIcon, CopyIcon } from "@chakra-ui/icons";
import { CheckList } from "./CheckList";
import { useClipBoardToast } from "@/lib/hooks/useClipBoardToast";
import { buildDescription, buildTitle } from "./check";
import { stripIndent } from "common-tags";
import { stripIndents } from "common-tags";
import { CheckListInitLoader, CheckListLoader } from "./CheckListLoader";
import { CheckListExporter } from "./CheckListExporter";
import { useLineageGraphContext } from "@/lib/hooks/LineageGraphContext";
Expand Down Expand Up @@ -204,7 +204,7 @@ export const CheckPage = () => {

function buildMarkdown(checks: Check[]) {
const checkItems = checks.map((check) => {
return stripIndent`
return stripIndents`
<details><summary>${buildTitle(check)}</summary>
${buildDescription(check)}
Expand Down

0 comments on commit 3a85498

Please sign in to comment.