diff options
| author | bobzel <zzzman@gmail.com> | 2024-10-07 23:10:27 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-10-07 23:10:27 -0400 |
| commit | a6c2194cdf3b6a35574526826a4053f650445e1b (patch) | |
| tree | c223badd1df10872f01c944166664984bd7939fd /src/client/views/pdf | |
| parent | 607443efdf3a618d9c5b062131ef9f7cbb6b032c (diff) | |
changed transferToFlashcard because questions were coming back in a format that didn't parse
Diffstat (limited to 'src/client/views/pdf')
| -rw-r--r-- | src/client/views/pdf/AnchorMenu.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/AnchorMenu.tsx b/src/client/views/pdf/AnchorMenu.tsx index bff112017..633ec9bbb 100644 --- a/src/client/views/pdf/AnchorMenu.tsx +++ b/src/client/views/pdf/AnchorMenu.tsx @@ -142,7 +142,7 @@ export class AnchorMenu extends AntimodeMenu<AntimodeMenuProps> { transferToFlashcard = (text: string, x: number, y: number) => { // put each question generated by GPT on the front of the flashcard - const senArr = text.trim().split('Question: '); + const senArr = text.trim().split('Question:'); const collectionArr: Doc[] = []; for (let i = 1; i < senArr.length; i++) { const newDoc = Docs.Create.ComparisonDocument(senArr[i], { _layout_isFlashcard: true, _width: 300, _height: 300 }); |
